File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
compiler/src/dotty/tools/dotc/parsing Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -378,7 +378,7 @@ object Parsers {
378378
379379 def rewriteNotice (additionalOption : String = " " ) = {
380380 val optionStr = if (additionalOption.isEmpty) " " else " " ++ additionalOption
381- i " \n This construct can be rewritten automatically under $optionStr -rewrite. "
381+ i " \n This construct can be rewritten automatically under $optionStr -rewrite -source 3.0-migration . "
382382 }
383383
384384 def syntaxVersionError (option : String , span : Span ) =
Original file line number Diff line number Diff line change 223 |def test = { implicit x: Int => x + x } // error
33 | ^
44 | This syntax is no longer supported; parameter needs to be enclosed in (...)
5- | This construct can be rewritten automatically under -rewrite.
5+ | This construct can be rewritten automatically under -rewrite -source 3.0-migration .
Original file line number Diff line number Diff line change 44 | This opening brace will start a new statement in Scala 3.
55 | It needs to be indented to the right to keep being treated as
66 | an argument to the previous expression.
7- | This construct can be rewritten automatically under -rewrite.
7+ | This construct can be rewritten automatically under -rewrite -source 3.0-migration .
You can’t perform that action at this time.
0 commit comments