mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-06 06:48:48 +00:00
Patterns in arguments
This commit is contained in:
parent
f5f7f3ceb8
commit
241ab0a9ae
4 changed files with 66 additions and 20 deletions
2
regression/orig/test106.log
Normal file
2
regression/orig/test106.log
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
> 1
|
||||
2
|
||||
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})
|
||||
1
regression/test106.input
Normal file
1
regression/test106.input
Normal file
|
|
@ -0,0 +1 @@
|
|||
5
|
||||
Loading…
Add table
Add a link
Reference in a new issue