diff options
author | Felix Mulder <felix.mulder@gmail.com> | 2016-11-14 17:10:54 +0100 |
---|---|---|
committer | Felix Mulder <felix.mulder@gmail.com> | 2016-11-17 10:04:23 +0100 |
commit | 6a398a2d551534157f14c4bba103c3dff9b85c18 (patch) | |
tree | 3fac284ff9d3dbb9a3fc149a615971576fbd8106 /src/dotty/tools/dotc/typer/FrontEnd.scala | |
parent | adb37eee8974be841ff5eef2655c23394c05badb (diff) | |
download | dotty-6a398a2d551534157f14c4bba103c3dff9b85c18.tar.gz dotty-6a398a2d551534157f14c4bba103c3dff9b85c18.tar.bz2 dotty-6a398a2d551534157f14c4bba103c3dff9b85c18.zip |
Unlink type when entering clashing package
Here we unlink the existing type that clashes with the package to be
entered into the symbol table, issue an error and the proceed to enter
the rest of the symbols.
My concern with this approach is what happens during typechecking
if other things reference the unlinked type.
Diffstat (limited to 'src/dotty/tools/dotc/typer/FrontEnd.scala')
-rw-r--r-- | src/dotty/tools/dotc/typer/FrontEnd.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/typer/FrontEnd.scala b/src/dotty/tools/dotc/typer/FrontEnd.scala index 4ce24b633..7bbf0169b 100644 --- a/src/dotty/tools/dotc/typer/FrontEnd.scala +++ b/src/dotty/tools/dotc/typer/FrontEnd.scala @@ -35,7 +35,7 @@ class FrontEnd extends Phase { else new Parser(unit.source).parse() val printer = if (ctx.settings.Xprint.value.contains("parser")) default else typr printer.println("parsed:\n" + unit.untpdTree.show) - if (Config.checkPositions) + if (Config.checkPositions) unit.untpdTree.checkPos(nonOverlapping = !unit.isJava && !ctx.reporter.hasErrors) } |