File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -786,7 +786,7 @@ object desugar {
786
786
New (ref(defn.RepeatedAnnot .typeRef), Nil :: Nil ),
787
787
AppliedTypeTree (ref(seqClass.typeRef), t))
788
788
} else {
789
- assert(ctx.mode.isExpr, ctx.mode)
789
+ assert(ctx.mode.isExpr || ctx.reporter.hasErrors , ctx.mode)
790
790
Select (t, op)
791
791
}
792
792
case PrefixOp (op, t) =>
Original file line number Diff line number Diff line change @@ -232,7 +232,7 @@ trait Checking {
232
232
233
233
/** Check that type `tp` is stable. */
234
234
def checkStable (tp : Type , pos : Position )(implicit ctx : Context ): Unit =
235
- if (! tp.isStable)
235
+ if (! tp.isStable && ! tp.isErroneous )
236
236
ctx.error(d " $tp is not stable " , pos)
237
237
238
238
/** Check that type `tp` is a legal prefix for '#'.
You can’t perform that action at this time.
0 commit comments