Skip to content

Commit 8cec885

Browse files
committed
Fix type error
1 parent b8dcd71 commit 8cec885

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-
Span(start, in.lastOffset))
2173+
source.atSpan(Span(start, in.lastOffset)))
21742174
in.nextToken()
21752175
val t = infixType()
21762176
if (sourceVersion == `3.1-migration`) {

0 commit comments

Comments
 (0)