Commit 19915b8
Match types: fix wildcard captures handling to match intent.
As demonstrated by scala/scala3#19607,
picking `H` does *not* in fact always work. It was always the
intent of the spec to pick an instantiation that would make
subtyping work, but the particular choice was wrong.
IMO this is therefore clearly a spec bug, and we can address it
irrespective of compatibility concerns.1 parent 28a7396 commit 19915b8
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
256 | | - | |
257 | | - | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
258 | 259 | | |
259 | 260 | | |
260 | 261 | | |
| |||
0 commit comments