We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8dcd71 commit 8cec885Copy full SHA for 8cec885
compiler/src/dotty/tools/dotc/parsing/Parsers.scala
@@ -2170,7 +2170,7 @@ object Parsers {
2170
// is not supported by Scala2.x
2171
report.errorOrMigrationWarning(
2172
s"This syntax is no longer supported; parameter needs to be enclosed in (...)${rewriteNotice()}",
2173
- Span(start, in.lastOffset))
+ source.atSpan(Span(start, in.lastOffset)))
2174
in.nextToken()
2175
val t = infixType()
2176
if (sourceVersion == `3.1-migration`) {
0 commit comments