Skip to content

Commit f98874a

Browse files
committed
Patch x: _* into x* (not x *)
1 parent e2c9dc0 commit f98874a

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
@@ -2344,7 +2344,7 @@ object Parsers {
23442344
in.sourcePos(uscoreStart),
23452345
future)
23462346
if sourceVersion == `future-migration` then
2347-
patch(source, Span(t.span.end, in.lastOffset), " *")
2347+
patch(source, Span(t.span.end, in.lastOffset), "*")
23482348
else if opStack.nonEmpty then
23492349
report.errorOrMigrationWarning(
23502350
em"""`_*` can be used only for last argument of method application.

0 commit comments

Comments
 (0)