diff options
author | Dmitry Petrashko <dark@d-d.me> | 2016-02-12 17:23:58 +0100 |
---|---|---|
committer | Dmitry Petrashko <dark@d-d.me> | 2016-02-12 17:23:58 +0100 |
commit | 259cf1e2234a853ade180ec7452f78ece3b66bf8 (patch) | |
tree | 2b4c6a53f4a279b83d3b49a1145a145010a60fd2 /src | |
parent | d04e704dda619331ae16ef870e1154ece77dd541 (diff) | |
parent | 904d9f87bc31c52d504f71607532edcbf214637c (diff) | |
download | dotty-259cf1e2234a853ade180ec7452f78ece3b66bf8.tar.gz dotty-259cf1e2234a853ade180ec7452f78ece3b66bf8.tar.bz2 dotty-259cf1e2234a853ade180ec7452f78ece3b66bf8.zip |
Merge pull request #1079 from dotty-staging/fix-#435
Fix #435
Diffstat (limited to 'src')
-rw-r--r-- | src/dotty/tools/dotc/typer/Typer.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/typer/Typer.scala b/src/dotty/tools/dotc/typer/Typer.scala index dd75e960e..6a2ff30fa 100644 --- a/src/dotty/tools/dotc/typer/Typer.scala +++ b/src/dotty/tools/dotc/typer/Typer.scala @@ -1068,7 +1068,7 @@ class Typer extends Namer with TypeAssigner with Applications with Implicits wit val packageContext = if (pkg is Package) ctx.fresh.setOwner(pkg.moduleClass).setTree(tree) else { - ctx.error(d"$pkg is not a package", tree.pos) + ctx.error(d"$pkg is already defined, cannot be a package", tree.pos) ctx } val stats1 = typedStats(tree.stats, pkg.moduleClass)(packageContext) |