File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
compiler/src/dotty/tools/dotc/parsing Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -3111,7 +3111,7 @@ object Parsers {
31113111
31123112 /** ‘*' | ‘_' */
31133113 def wildcardSelector () =
3114- if in.token == USCORE && sourceVersion.isAtLeast(`3.1` ) then
3114+ if in.token == USCORE && sourceVersion.isAtLeast(future ) then
31153115 report.errorOrMigrationWarning(
31163116 em " `_` is no longer supported for a wildcard import; use `*` instead ${rewriteNotice(" 3.1" )}" ,
31173117 in.sourcePos())
@@ -3129,7 +3129,7 @@ object Parsers {
31293129 /** id [‘as’ (id | ‘_’) */
31303130 def namedSelector (from : Ident ) =
31313131 if in.token == ARROW || isIdent(nme.as) then
3132- if in.token == ARROW && sourceVersion.isAtLeast(`3.1` ) then
3132+ if in.token == ARROW && sourceVersion.isAtLeast(future ) then
31333133 report.errorOrMigrationWarning(
31343134 em " The import renaming `a => b` is no longer supported ; use `a as b` instead ${rewriteNotice(" 3.1" )}" ,
31353135 in.sourcePos())
You can’t perform that action at this time.
0 commit comments