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 0400253 commit f510690Copy full SHA for f510690
compiler/src/dotty/tools/dotc/typer/Inferencing.scala
@@ -45,7 +45,8 @@ object Inferencing {
45
46
/** Instantiate selected type variables `tvars` in type `tp` */
47
def instantiateSelected(tp: Type, tvars: List[Type])(implicit ctx: Context): Unit =
48
- new IsFullyDefinedAccumulator(new ForceDegree.Value(tvars.contains, minimizeAll = true)).process(tp)
+ if (tvars.nonEmpty)
49
+ new IsFullyDefinedAccumulator(new ForceDegree.Value(tvars.contains, minimizeAll = true)).process(tp)
50
51
/** Instantiate any type variables in `tp` whose bounds contain a reference to
52
* one of the parameters in `tparams` or `vparamss`.
0 commit comments