summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/compiler/scala/tools/nsc/symtab/Symbols.scala4
-rw-r--r--test/files/neg/t0209.check2
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