Commit d32bd56
committed
Fix #5666: Fix normalizing map when testing for seen pairs
When testing for seen pairs we subject both types to a "normalize" type map
that derefereces LayVals. This is tricky but necessary. But we should take
care that the map does not disturbe the types in any other way. In particular
it should not replace a TypeVar by its instance.1 parent a4d38b9 commit d32bd56
File tree
2 files changed
+22
-0
lines changed- compiler/src/dotty/tools/dotc/core
- tests/pos
2 files changed
+22
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
| 174 | + | |
| 175 | + | |
174 | 176 | | |
175 | 177 | | |
176 | 178 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
0 commit comments