mirror of
https://github.com/ProgramSnail/Lama.git
synced 2026-01-03 04:28:19 +00:00
Patterns in arguments
This commit is contained in:
parent
f5f7f3ceb8
commit
241ab0a9ae
4 changed files with 66 additions and 20 deletions
9
regression/test106.expr
Normal file
9
regression/test106.expr
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
fun f (_) {write (1)}
|
||||
fun g (h : tl) {
|
||||
write (h)
|
||||
}
|
||||
|
||||
local n = read ();
|
||||
|
||||
f (1);
|
||||
g ({2, 3})
|
||||
Loading…
Add table
Add a link
Reference in a new issue