Commit f4e6239
authored
Make opaque types decomposable (#24068)
fixes: #22513
Currently, if the upper bounds of opaque types are sealed, they pass
exhaustivityCheckable, but exhaustivity checks are not handled correctly
because the compiler preventing from decomposing them.
The guard was introduced in
[#19368](#19368), but the tests
still pass even without this guard.1 parent 71fcd1a commit f4e6239
File tree
2 files changed
+27
-2
lines changed- compiler/src/dotty/tools/dotc/transform/patmat
- tests/pos
2 files changed
+27
-2
lines changedLines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
717 | 717 | | |
718 | 718 | | |
719 | 719 | | |
720 | | - | |
721 | 720 | | |
722 | 721 | | |
723 | 722 | | |
724 | 723 | | |
725 | 724 | | |
726 | 725 | | |
727 | | - | |
728 | 726 | | |
729 | 727 | | |
730 | 728 | | |
| |||
| 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 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
0 commit comments