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 {
3111
3111
3112
3112
/** ‘*' | ‘_' */
3113
3113
def wildcardSelector () =
3114
- if in.token == USCORE && sourceVersion.isAtLeast(`3.1` ) then
3114
+ if in.token == USCORE && sourceVersion.isAtLeast(future ) then
3115
3115
report.errorOrMigrationWarning(
3116
3116
em " `_` is no longer supported for a wildcard import; use `*` instead ${rewriteNotice(" 3.1" )}" ,
3117
3117
in.sourcePos())
@@ -3129,7 +3129,7 @@ object Parsers {
3129
3129
/** id [‘as’ (id | ‘_’) */
3130
3130
def namedSelector (from : Ident ) =
3131
3131
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
3133
3133
report.errorOrMigrationWarning(
3134
3134
em " The import renaming `a => b` is no longer supported ; use `a as b` instead ${rewriteNotice(" 3.1" )}" ,
3135
3135
in.sourcePos())
You can’t perform that action at this time.
0 commit comments