diff options
author | Geoffrey Washburn <geoffrey.washburn@epfl.ch> | 2008-05-01 17:51:19 +0000 |
---|---|---|
committer | Geoffrey Washburn <geoffrey.washburn@epfl.ch> | 2008-05-01 17:51:19 +0000 |
commit | 78ab4f9e7a46c913ce3f46204a7eea430ad24131 (patch) | |
tree | 40617164d897b6532b33f33b355bb5bfb406ef85 | |
parent | f8625982203331b3403eeb05833ae4ca1b6621a9 (diff) | |
download | scala-78ab4f9e7a46c913ce3f46204a7eea430ad24131.tar.gz scala-78ab4f9e7a46c913ce3f46204a7eea430ad24131.tar.bz2 scala-78ab4f9e7a46c913ce3f46204a7eea430ad24131.zip |
Fix for #483.
-rw-r--r-- | src/compiler/scala/tools/nsc/symtab/Symbols.scala | 4 | ||||
-rw-r--r-- | test/files/neg/t0209.check | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/compiler/scala/tools/nsc/symtab/Symbols.scala b/src/compiler/scala/tools/nsc/symtab/Symbols.scala index 258e109243..adf60698f1 100644 --- a/src/compiler/scala/tools/nsc/symtab/Symbols.scala +++ b/src/compiler/scala/tools/nsc/symtab/Symbols.scala @@ -1160,8 +1160,8 @@ trait Symbols { var s = simpleName.decode if (s endsWith nme.LOCAL_SUFFIX) s = s.substring(0, s.length - nme.LOCAL_SUFFIX.length) - if (s endsWith ".type") - s = s.substring(0, s.length - ".type".length) +// if (s endsWith ".type") +// s = s.substring(0, s.length - ".type".length) s + idString } diff --git a/test/files/neg/t0209.check b/test/files/neg/t0209.check index 38b911533f..1904e58e7a 100644 --- a/test/files/neg/t0209.check +++ b/test/files/neg/t0209.check @@ -1,6 +1,6 @@ t0209.scala:15: error: type mismatch; found : C - required: _1 where val _1: A + required: _1.type where val _1: A (new B: A).f(new C) ^ one error found |