Skip to content

Commit 6a81c4c

Browse files
oderskysmarter
andauthored
Update compiler/src/dotty/tools/dotc/typer/Applications.scala
Co-authored-by: Guillaume Martres <smarter@ubuntu.com>
1 parent d4048f2 commit 6a81c4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/typer/Applications.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ trait Applications extends Compatibility {
616616
val msg = arg match
617617
case untpd.Tuple(Nil)
618618
if applyKind == ApplyKind.Infix && funType.widen.isNullaryMethod =>
619-
i"can't supply unit value with infix notation because nullary method $methString takes no arguments; use dotted invocation instead: (...).${methRef.name}()"
619+
i"can't supply unit value with infix notation because nullary $methString takes no arguments; use dotted invocation instead: (...).${methRef.name}()"
620620
case _ =>
621621
i"too many arguments for $methString"
622622
fail(msg, arg)

0 commit comments

Comments
 (0)