diff options
author | vogt <vogt@epfl.ch> | 2011-11-23 17:02:03 +0000 |
---|---|---|
committer | vogt <vogt@epfl.ch> | 2011-11-23 17:02:03 +0000 |
commit | 23d7024e717a085a446c067efa28e371717119ac (patch) | |
tree | a7714ea5dbf00358e9c123ee13a2a7aef381c8ed /src/compiler | |
parent | bbde90f3dc0abec73024acb50c8a363458183f55 (diff) | |
download | scala-23d7024e717a085a446c067efa28e371717119ac.tar.gz scala-23d7024e717a085a446c067efa28e371717119ac.tar.bz2 scala-23d7024e717a085a446c067efa28e371717119ac.zip |
- fixed code lifting of String, Int, ...
Closes SI-3566. Review by moors.
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/scala/tools/nsc/transform/LiftCode.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/transform/LiftCode.scala b/src/compiler/scala/tools/nsc/transform/LiftCode.scala index ac2788b8ef..fd279ee494 100644 --- a/src/compiler/scala/tools/nsc/transform/LiftCode.scala +++ b/src/compiler/scala/tools/nsc/transform/LiftCode.scala @@ -94,7 +94,7 @@ abstract class LiftCode extends Transform with TypingTransformers { val treetpe = if (tree.tpe.typeSymbol.isAnonymousClass) tree.tpe.typeSymbol.classBound else tree.tpe - New(TypeTree(appliedType(definitions.CodeClass.typeConstructor, List(treetpe))), + New(TypeTree(appliedType(definitions.CodeClass.typeConstructor, List(treetpe.widen))), List(List(arg))) } |