We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2120ca commit d5f4268Copy full SHA for d5f4268
src/dotty/tools/dotc/parsing/Parsers.scala
@@ -296,7 +296,7 @@ object Parsers {
296
case Typed(Ident(name), tpt) =>
297
makeParameter(name.asTermName, tpt, mods) withPos tree.pos
298
case _ =>
299
- syntaxError(s"not a legal $expected (${tree.getClass})", tree.pos)
+ syntaxError(s"not a legal $expected", tree.pos)
300
makeParameter(nme.ERROR, tree, mods)
301
}
302
tests/neg/i1424.scala
@@ -0,0 +1,3 @@
1
+class Test {
2
+ (x: Int) => x // error: not a legal self type clause // error: package x is not a value // error: package x is not a value
3
+}
0 commit comments