Commit 51c4f85
committed
Use .superType instead of .underlying
Underlying breaks kinds (the underlying of an AppliedType is a HKTypeLambda).
The edited test case was making use of that bug to implement an
impossible match type. Indeed, that test is trying to distinguish
f[Dummy] (for some f)
and
Int
But there is no way to tell that these two types are disjoint. In fact
they are not, since `type F[X] = Any` matches the `f[Dummy]` pattern and
overlaps with `Int`.1 parent 4d4296e commit 51c4f85
File tree
2 files changed
+6
-6
lines changed- compiler/src/dotty/tools/dotc/core
- tests/run-macros
2 files changed
+6
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2508 | 2508 | | |
2509 | 2509 | | |
2510 | 2510 | | |
2511 | | - | |
| 2511 | + | |
2512 | 2512 | | |
2513 | | - | |
| 2513 | + | |
2514 | 2514 | | |
2515 | | - | |
| 2515 | + | |
2516 | 2516 | | |
2517 | 2517 | | |
2518 | 2518 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | | - | |
4 | | - | |
| 3 | + | |
| 4 | + | |
0 commit comments