Skip to content

Commit 439b65c

Browse files
committed
Drop annoying newline in error message
1 parent c1ada60 commit 439b65c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ class Namer { typer: Typer =>
274274
def preExisting = ctx.effectiveScope.lookup(name)
275275
if (ctx.owner is PackageClass)
276276
if (preExisting.isDefinedInCurrentRun)
277-
errorName(s"${preExisting.showLocated} has already been compiled\nonce during this run")
277+
errorName(s"${preExisting.showLocated} has already been compiled once during this run")
278278
else name
279279
else
280280
if ((!ctx.owner.isClass || name.isTypeName) && preExisting.exists)

0 commit comments

Comments
 (0)