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 74ab521 commit d9cd153Copy full SHA for d9cd153
compiler/src/dotty/tools/dotc/transform/patmat/Space.scala
@@ -548,6 +548,10 @@ object SpaceEngine {
548
// which means we can maximise to types that include other type vars
549
// this fails TreeChecker's "non-empty constraint at end of $fusedPhase" check
550
// e.g. run-macros/string-context-implicits
551
+ // I can't prove that a second call won't also create type vars,
552
+ // but I'd rather have an unassigned new-new type var, than an infinite loop.
553
+ // After all, there's nothing strictly "wrong" with unassigned type vars,
554
+ // it just fails TreeChecker's linting.
555
maximizeType(mt.paramInfos(0), Spans.NoSpan)
556
mt
557
}
0 commit comments