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.
2 parents ef5c50a + 3b5c70b commit 0e32220Copy full SHA for 0e32220
src/dotty/tools/dotc/parsing/Parsers.scala
@@ -1732,7 +1732,7 @@ object Parsers {
1732
*/
1733
def defDefOrDcl(mods: Modifiers): Tree = atPos(tokenRange) {
1734
def scala2ProcedureSyntax =
1735
- testScala2Mode("Procedure syntax no longer supported; `=' should be inserted here")
+ testScala2Mode("Procedure syntax no longer supported; `: Unit =' should be inserted here")
1736
if (in.token == THIS) {
1737
in.nextToken()
1738
val vparamss = paramClauses(nme.CONSTRUCTOR)
0 commit comments