aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/typer/Checking.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2015-04-12 18:28:31 +0200
committerMartin Odersky <odersky@gmail.com>2015-04-13 16:06:10 +0200
commit6571efa7ea1a5bd973ff010de6e38901cc77387b (patch)
tree809da25be0a7036cea97965c4015c80a91b2a6f3 /src/dotty/tools/dotc/typer/Checking.scala
parentabba939a71423070e29c6035fa973b3291423106 (diff)
downloaddotty-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.scala2
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 '#'.