We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aef1e2e commit 70ead5cCopy full SHA for 70ead5c
compiler/src/dotty/tools/dotc/transform/patmat/Space.scala
@@ -539,6 +539,10 @@ object SpaceEngine {
539
// which means we can maximise to types that include other type vars
540
// this fails TreeChecker's "non-empty constraint at end of $fusedPhase" check
541
// e.g. run-macros/string-context-implicits
542
+ // I can't prove that a second call won't also create type vars,
543
+ // but I'd rather have an unassigned new-new type var, than an infinite loop.
544
+ // After all, there's nothing strictly "wrong" with unassigned type vars,
545
+ // it just fails TreeChecker's linting.
546
maximizeType(mt.paramInfos(0), Spans.NoSpan)
547
mt
548
}
0 commit comments