mirror of
https://github.com/anoma/juvix.git
synced 2024-12-15 10:03:22 +03:00
3fbc9c7c55
Closes #1644 #1635
17 lines
181 B
Plaintext
17 lines
181 B
Plaintext
-- invalid memory access
|
|
|
|
type list {
|
|
nil : list;
|
|
cons : * -> list -> list;
|
|
}
|
|
|
|
function hd(list) {
|
|
push arg[0].cons[0];
|
|
ret;
|
|
}
|
|
|
|
function main() {
|
|
alloc nil;
|
|
tcall hd;
|
|
}
|