diff options
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 } |