Skip to content

Commit 9a10ccd

Browse files
committed
add another test
1 parent 60d7727 commit 9a10ccd

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

tests/e2e/functions.lox

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
fun foo(a, b) {
2+
print a + b;
3+
}
4+
5+
fun a1() { a2(); }
6+
fun a2() { a3(); }
7+
fun a3() { a4(); }
8+
fun a4() { foo(1, 2); }
9+
10+
a1();

tests/e2e/functions.out

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3

0 commit comments

Comments
 (0)