diff options
author | Martin Odersky <odersky@gmail.com> | 2011-07-30 21:04:43 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2011-07-30 21:04:43 +0000 |
commit | c0db3f2d065e22796a2c917c6c3b0f14f3982cf0 (patch) | |
tree | a21a5982ec9d0a6311843b2e1397192a3a64aecd /src/compiler/scala/reflect/internal/Types.scala | |
parent | d0c5e4be5554f4862da0690ac0315a4433fcb5d5 (diff) | |
download | scala-c0db3f2d065e22796a2c917c6c3b0f14f3982cf0.tar.gz scala-c0db3f2d065e22796a2c917c6c3b0f14f3982cf0.tar.bz2 scala-c0db3f2d065e22796a2c917c6c3b0f14f3982cf0.zip |
LiftCode works again, now integrated with new r...
LiftCode works again, now integrated with new reflection library.
Other changes: def Literal(x: Any) has been deprecated, and all its uses removed.
Modifiers has lost positions as fourth case class argument; is now a field, mirroring Tree.pos (this removes junk in patterns and makes reification simpler). Review by extempore.
Diffstat (limited to 'src/compiler/scala/reflect/internal/Types.scala')
-rw-r--r-- | src/compiler/scala/reflect/internal/Types.scala | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/compiler/scala/reflect/internal/Types.scala b/src/compiler/scala/reflect/internal/Types.scala index 545b86f6ab..81962f89d8 100644 --- a/src/compiler/scala/reflect/internal/Types.scala +++ b/src/compiler/scala/reflect/internal/Types.scala @@ -826,7 +826,8 @@ trait Types extends api.Types { self: SymbolTable => /** The string representation of this type, with singletypes explained. */ def toLongString = { val str = toString - if (str endsWith ".type") str + " (with underlying type " + widen + ")" + if (str == "type") widen.toString + else if (str endsWith ".type") str + " (with underlying type " + widen + ")" else str } |