File tree 1 file changed +2
-5
lines changed
compiler/src/dotty/tools/dotc/typer
1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -28,12 +28,9 @@ object Inferencing {
28
28
* but only if the overall result of `isFullyDefined` is `true`.
29
29
* Variables that are successfully minimized do not count as uninstantiated.
30
30
*/
31
- def isFullyDefined (tp : Type , force : ForceDegree .Value , handleOverflow : Boolean = false )(using Context ): Boolean = {
31
+ def isFullyDefined (tp : Type , force : ForceDegree .Value )(using Context ): Boolean = {
32
32
val nestedCtx = ctx.fresh.setNewTyperState()
33
- val result =
34
- try new IsFullyDefinedAccumulator (force)(using nestedCtx).process(tp)
35
- catch case ex : RecursionOverflow if handleOverflow =>
36
- false // can happen for programs with illegal recusions, e.g. neg/recursive-lower-constraint.scala
33
+ val result = new IsFullyDefinedAccumulator (force)(using nestedCtx).process(tp)
37
34
if (result) nestedCtx.typerState.commit()
38
35
result
39
36
}
You can’t perform that action at this time.
0 commit comments