summaryrefslogtreecommitdiff
path: root/src/compiler
diff options
context:
space:
mode:
authormichelou <michelou@epfl.ch>2007-05-02 12:35:48 +0000
committermichelou <michelou@epfl.ch>2007-05-02 12:35:48 +0000
commit879b7baeb04717ffc2cec692dba1f708fe1329ad (patch)
treedccf89053bbbea126358344cffaead7f11f3b47d /src/compiler
parentc74fb3963801d3b371df1d81d7df34dc1ed82805 (diff)
downloadscala-879b7baeb04717ffc2cec692dba1f708fe1329ad.tar.gz
scala-879b7baeb04717ffc2cec692dba1f708fe1329ad.tar.bz2
scala-879b7baeb04717ffc2cec692dba1f708fe1329ad.zip
fixed incorrect value for generatedType
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/scala/tools/nsc/backend/icode/GenICode.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/backend/icode/GenICode.scala b/src/compiler/scala/tools/nsc/backend/icode/GenICode.scala
index 85ebce3d1a..e8e251c2fa 100644
--- a/src/compiler/scala/tools/nsc/backend/icode/GenICode.scala
+++ b/src/compiler/scala/tools/nsc/backend/icode/GenICode.scala
@@ -658,7 +658,7 @@ abstract class GenICode extends SubComponent {
val ctx1 = genLoad(expr, ctx, toTypeKind(expr.tpe))
val nativeKind = toTypeKind(expr.tpe)
ctx1.bb.emit(BOX(nativeKind), expr.pos)
- generatedType = ANY_REF_CLASS
+ generatedType = toTypeKind(fun.symbol.tpe.resultType)
ctx1
case Apply(fun @ _, List(expr)) if (definitions.isUnbox(fun.symbol)) =>