Skip to content

Commit b8dcd71

Browse files
oderskysmarter
andauthored
Update compiler/src/dotty/tools/dotc/parsing/Parsers.scala
Co-authored-by: Guillaume Martres <[email protected]>
1 parent e2f8f4d commit b8dcd71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2170,7 +2170,7 @@ object Parsers {
21702170
// is not supported by Scala2.x
21712171
report.errorOrMigrationWarning(
21722172
s"This syntax is no longer supported; parameter needs to be enclosed in (...)${rewriteNotice()}",
2173-
in.sourcePos())
2173+
Span(start, in.lastOffset))
21742174
in.nextToken()
21752175
val t = infixType()
21762176
if (sourceVersion == `3.1-migration`) {

0 commit comments

Comments
 (0)