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 {
786786 New (ref(defn.RepeatedAnnot .typeRef), Nil :: Nil ),
787787 AppliedTypeTree (ref(seqClass.typeRef), t))
788788 } else {
789- assert(ctx.mode.isExpr, ctx.mode)
789+ assert(ctx.mode.isExpr || ctx.reporter.hasErrors , ctx.mode)
790790 Select (t, op)
791791 }
792792 case PrefixOp (op, t) =>
Original file line number Diff line number Diff line change @@ -232,7 +232,7 @@ trait Checking {
232232
233233 /** Check that type `tp` is stable. */
234234 def checkStable (tp : Type , pos : Position )(implicit ctx : Context ): Unit =
235- if (! tp.isStable)
235+ if (! tp.isStable && ! tp.isErroneous )
236236 ctx.error(d " $tp is not stable " , pos)
237237
238238 /** Check that type `tp` is a legal prefix for '#'.
You can’t perform that action at this time.
0 commit comments