Skip to content
This repository has been archived by the owner on Feb 23, 2018. It is now read-only.

Commit

Permalink
- fixed code lifting of String, Int, ...
Browse files Browse the repository at this point in the history
Closes SI-3566. Review by moors.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@26060 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
  • Loading branch information
vogt committed Nov 23, 2011
1 parent 8afac89 commit e0f0411
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/scala/tools/nsc/transform/LiftCode.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
}

Expand Down

0 comments on commit e0f0411

Please sign in to comment.