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 1d80e66 commit ba801d5Copy full SHA for ba801d5
compiler/src/dotty/tools/dotc/typer/Applications.scala
@@ -216,7 +216,6 @@ trait Applications extends Compatibility { self: Typer with Dynamic =>
216
case methType: MethodType =>
217
// apply the result type constraint, unless method type is dependent
218
val resultApprox = resultTypeApprox(methType)
219
- val savedConstraint = ctx.typerState.constraint
220
if (!constrainResult(resultApprox, resultType))
221
if (ctx.typerState.isCommittable)
222
// defer the problem until after the application;
0 commit comments