Skip to content

Commit 7657ec9

Browse files
committed
Fix rebase breakage
1 parent c85c836 commit 7657ec9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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())

0 commit comments

Comments
 (0)