mirror of
https://github.com/anoma/juvix.git
synced 2024-12-12 14:28:08 +03:00
7b0a11d570
* Adds negative tests for the JuvixTree evaluator * Depends on #2600 * Depends on #2599 * Depends on #2598 * Depends on #2597 * Depends on #2596 * Depends on #2595 * Depends on #2594 * Depends on #2590
14 lines
147 B
Plaintext
14 lines
147 B
Plaintext
-- case on non-data
|
|
|
|
type list {
|
|
nil : list;
|
|
cons : * -> list -> list;
|
|
}
|
|
|
|
function main() : * {
|
|
case[list](3) {
|
|
nil: 0
|
|
cons: 1
|
|
}
|
|
}
|