diff options
author | Martin Odersky <odersky@gmail.com> | 2013-11-04 11:29:00 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2013-11-04 11:29:00 +0100 |
commit | ab95d83444c6397f8859713dd6606602c77c8d23 (patch) | |
tree | fa490998a0ab2d72e4d86760417193a5e504374d /src/dotty/tools/dotc/typer/Typer.scala | |
parent | 19b6784ef1cae9cd0af278c0c3afcee47c0a00ea (diff) | |
download | dotty-ab95d83444c6397f8859713dd6606602c77c8d23.tar.gz dotty-ab95d83444c6397f8859713dd6606602c77c8d23.tar.bz2 dotty-ab95d83444c6397f8859713dd6606602c77c8d23.zip |
Upgraded handling of positions
It turned out the some trees were still carrying NoPosition in their pos fields. The new treatment avoids that and aslo adds some assertions to check for regressions.
Diffstat (limited to 'src/dotty/tools/dotc/typer/Typer.scala')
-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 14345a627..efb89cc4c 100644 --- a/src/dotty/tools/dotc/typer/Typer.scala +++ b/src/dotty/tools/dotc/typer/Typer.scala @@ -1090,7 +1090,7 @@ class Typer extends Namer with Applications with Implicits { } tree match { - case _: MemberDef | _: PackageDef | _: Import | _: WithoutType[_] => tree + case _: MemberDef | _: PackageDef | _: Import | _: WithoutTypeOrPos[_] => tree case _ => tree.tpe.widen match { case ErrorType => tree |