File tree 1 file changed +5
-4
lines changed
compiler/src/dotty/tools/dotc/parsing 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -2344,11 +2344,12 @@ object Parsers {
2344
2344
val isVarargSplice = location.inArgs && followingIsVararg()
2345
2345
in.nextToken()
2346
2346
if isVarargSplice then
2347
- report.errorOrMigrationWarning (
2348
- em " The syntax `x: _*` is no longer supported for vararg splices; use `x*` instead ${rewriteNotice(`future -migration`)}" ,
2347
+ report.gradualErrorOrMigrationWarning (
2348
+ em " The syntax `x: _*` is no longer supported for vararg splices; use `x*` instead ${rewriteNotice(`3.4 -migration`)}" ,
2349
2349
in.sourcePos(uscoreStart),
2350
- future)
2351
- if sourceVersion == `future-migration` then
2350
+ warnFrom = `3.4`,
2351
+ errorFrom = future)
2352
+ if sourceVersion.isMigrating && sourceVersion.isAtLeast(`3.4-migration`) then
2352
2353
patch(source, Span (t.span.end, in.lastOffset), " *" )
2353
2354
else if opStack.nonEmpty then
2354
2355
report.errorOrMigrationWarning(
You can’t perform that action at this time.
0 commit comments