We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea25960 commit e5b891aCopy full SHA for e5b891a
compiler/src/dotty/tools/dotc/ast/Trees.scala
@@ -115,7 +115,7 @@ object Trees {
115
*/
116
def withType(tpe: Type)(implicit ctx: Context): ThisTree[Type] = {
117
if (tpe.isInstanceOf[ErrorType])
118
- assert(ctx.reporter.errorsReported)
+ assert(ctx.mode.is(Mode.Interactive) || ctx.reporter.errorsReported)
119
else if (Config.checkTreesConsistent)
120
checkChildrenTyped(productIterator)
121
withTypeUnchecked(tpe)
0 commit comments