Commit bd05e88
committed
Allow adding Never items to closed subtypes
A closed subtype can validly add a key, provided it is uninhabited, as
this is just explicitly stating the previously implicit constraint.1 parent 022a501 commit bd05e88
2 files changed
Lines changed: 24 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
941 | 941 | | |
942 | 942 | | |
943 | 943 | | |
944 | | - | |
945 | | - | |
946 | | - | |
947 | 944 | | |
948 | 945 | | |
949 | 946 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5391 | 5391 | | |
5392 | 5392 | | |
5393 | 5393 | | |
| 5394 | + | |
| 5395 | + | |
| 5396 | + | |
| 5397 | + | |
| 5398 | + | |
| 5399 | + | |
| 5400 | + | |
| 5401 | + | |
| 5402 | + | |
| 5403 | + | |
| 5404 | + | |
| 5405 | + | |
| 5406 | + | |
| 5407 | + | |
| 5408 | + | |
| 5409 | + | |
| 5410 | + | |
| 5411 | + | |
| 5412 | + | |
| 5413 | + | |
| 5414 | + | |
| 5415 | + | |
| 5416 | + | |
| 5417 | + | |
5394 | 5418 | | |
5395 | 5419 | | |
5396 | 5420 | | |
| |||
0 commit comments