Commit fdd198b
committed
test: assert runtime rejection of [] default for non-array bases
Add a matching .throws.snap(...) to the 'empty array default rejects
non-array base' test so it verifies both the runtime parse error and the
type-level error, consistent with the surrounding invalid-default tests
(incorrect default type, non-literal, fails on expression value).1 parent 87c90aa commit fdd198b
1 file changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
590 | 590 | | |
591 | 591 | | |
592 | 592 | | |
593 | | - | |
594 | | - | |
595 | | - | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
596 | 598 | | |
597 | 599 | | |
598 | 600 | | |
| |||
0 commit comments