Patterns in arguments

This commit is contained in:
Dmitry Boulytchev 2020-02-15 23:50:48 +03:00
parent f5f7f3ceb8
commit 241ab0a9ae
4 changed files with 66 additions and 20 deletions

View file

@ -0,0 +1,2 @@
> 1
2

9
regression/test106.expr Normal file
View 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
View file

@ -0,0 +1 @@
5