Skip to content

Commit 259cf1e

Browse files
committed
Merge pull request #1079 from dotty-staging/fix-#435
Fix #435
2 parents d04e704 + 904d9f8 commit 259cf1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dotty/tools/dotc/typer/Typer.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1068,7 +1068,7 @@ class Typer extends Namer with TypeAssigner with Applications with Implicits wit
10681068
val packageContext =
10691069
if (pkg is Package) ctx.fresh.setOwner(pkg.moduleClass).setTree(tree)
10701070
else {
1071-
ctx.error(d"$pkg is not a package", tree.pos)
1071+
ctx.error(d"$pkg is already defined, cannot be a package", tree.pos)
10721072
ctx
10731073
}
10741074
val stats1 = typedStats(tree.stats, pkg.moduleClass)(packageContext)

0 commit comments

Comments
 (0)