mirror of
https://github.com/anoma/juvix.git
synced 2024-12-15 01:52:11 +03:00
3fbc9c7c55
Closes #1644 #1635
16 lines
194 B
Plaintext
16 lines
194 B
Plaintext
-- case type mismatch
|
|
|
|
type list {
|
|
nil : list;
|
|
cons : * -> list -> list;
|
|
}
|
|
|
|
function main() {
|
|
alloc nil;
|
|
case list {
|
|
nil: { pop; push "a"; }
|
|
cons: { pop; push 1; }
|
|
};
|
|
ret;
|
|
}
|