File tree 1 file changed +2
-2
lines changed
compiler/src/dotty/tools/dotc/parsing
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -3518,7 +3518,7 @@ object Parsers {
3518
3518
3519
3519
/** ‘*' | ‘_' */
3520
3520
def wildcardSelector () =
3521
- if in.token == USCORE && sourceVersion.isAtLeast(future) then
3521
+ if in.token == USCORE then
3522
3522
report.errorOrMigrationWarning(
3523
3523
em " `_` is no longer supported for a wildcard $exprName; use `*` instead ${rewriteNotice(`future-migration`)}" ,
3524
3524
in.sourcePos(),
@@ -3538,7 +3538,7 @@ object Parsers {
3538
3538
/** id [‘as’ (id | ‘_’) */
3539
3539
def namedSelector (from : Ident ) =
3540
3540
if in.token == ARROW || isIdent(nme.as) then
3541
- if in.token == ARROW && sourceVersion.isAtLeast(future) then
3541
+ if in.token == ARROW then
3542
3542
report.errorOrMigrationWarning(
3543
3543
em " The $exprName renaming `a => b` is no longer supported ; use `a as b` instead ${rewriteNotice(`future-migration`)}" ,
3544
3544
in.sourcePos(),
You can’t perform that action at this time.
0 commit comments