Skip to content

Commit 0e32220

Browse files
committed
Merge pull request #1021 from dotty-staging/fix/procedure-migration
Improve migration message for Scala 2 procedures
2 parents ef5c50a + 3b5c70b commit 0e32220

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dotty/tools/dotc/parsing/Parsers.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1732,7 +1732,7 @@ object Parsers {
17321732
*/
17331733
def defDefOrDcl(mods: Modifiers): Tree = atPos(tokenRange) {
17341734
def scala2ProcedureSyntax =
1735-
testScala2Mode("Procedure syntax no longer supported; `=' should be inserted here")
1735+
testScala2Mode("Procedure syntax no longer supported; `: Unit =' should be inserted here")
17361736
if (in.token == THIS) {
17371737
in.nextToken()
17381738
val vparamss = paramClauses(nme.CONSTRUCTOR)

0 commit comments

Comments
 (0)