Add test with unscoped pattern on definition rule

This commit is contained in:
imaqtkatt 2024-06-25 18:10:26 -03:00
parent eb1fd23a92
commit 94bff60775
2 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,3 @@
add $a b = (+ $a b)
main = (add 9 4)

View File

@ -0,0 +1,8 @@
---
source: tests/golden_tests.rs
input_file: tests/golden_tests/compile_file/def_pat_unscoped.bend
---
@add = ($([+] $(a b)) (a b))
@main = a
& @add ~ (9 (4 a))