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 f9fa640 commit 0ca7713Copy full SHA for 0ca7713
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