diff options
author | Martin Odersky <odersky@gmail.com> | 2015-04-12 18:28:31 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2015-04-13 16:06:10 +0200 |
commit | 6571efa7ea1a5bd973ff010de6e38901cc77387b (patch) | |
tree | 809da25be0a7036cea97965c4015c80a91b2a6f3 /src/dotty/tools/dotc/typer/Checking.scala | |
parent | abba939a71423070e29c6035fa973b3291423106 (diff) | |
download | dotty-6571efa7ea1a5bd973ff010de6e38901cc77387b.tar.gz dotty-6571efa7ea1a5bd973ff010de6e38901cc77387b.tar.bz2 dotty-6571efa7ea1a5bd973ff010de6e38901cc77387b.zip |
Tweaks relative to error reporting
Diffstat (limited to 'src/dotty/tools/dotc/typer/Checking.scala')
-rw-r--r-- | src/dotty/tools/dotc/typer/Checking.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/typer/Checking.scala b/src/dotty/tools/dotc/typer/Checking.scala index 9303572d2..b28afa6f2 100644 --- a/src/dotty/tools/dotc/typer/Checking.scala +++ b/src/dotty/tools/dotc/typer/Checking.scala @@ -232,7 +232,7 @@ trait Checking { /** Check that type `tp` is stable. */ def checkStable(tp: Type, pos: Position)(implicit ctx: Context): Unit = - if (!tp.isStable) + if (!tp.isStable && !tp.isErroneous) ctx.error(d"$tp is not stable", pos) /** Check that type `tp` is a legal prefix for '#'. |