Skip to content

Commit

Permalink
Detail the second-pass maximizeType in Space.signature
Browse files Browse the repository at this point in the history
  • Loading branch information
dwijnand committed Aug 5, 2024
1 parent 4dd8e8a commit 5b425ee
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions compiler/src/dotty/tools/dotc/transform/patmat/Space.scala
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,10 @@ object SpaceEngine {
// which means we can maximise to types that include other type vars
// this fails TreeChecker's "non-empty constraint at end of $fusedPhase" check
// e.g. run-macros/string-context-implicits
// I can't prove that a second call won't also create type vars,
// but I'd rather have an unassigned new-new type var, than an infinite loop.
// After all, there's nothing strictly "wrong" with unassigned type vars,
// it just fails TreeChecker's linting.
maximizeType(mt.paramInfos(0), Spans.NoSpan)
mt
}
Expand Down

0 comments on commit 5b425ee

Please sign in to comment.