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 b1dac36 commit 67954feCopy full SHA for 67954fe
compiler/src/dotty/tools/dotc/typer/Typer.scala
@@ -2191,8 +2191,11 @@ class Typer extends Namer with TypeAssigner with Applications with Implicits wit
2191
val prevConstraint = localCtx.typerState.constraint
2192
if (isFullyDefined(wtp, force = ForceDegree.all)(localCtx) &&
2193
localCtx.typerState.constraint.ne(prevConstraint)) {
2194
- localCtx.typerState.commit()
2195
- return adapt(tree, pt, original)
+ val tree1 = adapt(tree, pt, original)(localCtx)
+ if (!localCtx.reporter.hasErrors) {
2196
+ localCtx.typerState.commit()
2197
+ return tree1
2198
+ }
2199
}
2200
2201
// try an implicit conversion
0 commit comments