mirror of
https://github.com/HigherOrderCO/Bend.git
synced 2024-09-11 03:45:29 +03:00
Add test with unscoped pattern on definition rule
This commit is contained in:
parent
eb1fd23a92
commit
94bff60775
3
tests/golden_tests/compile_file/def_pat_unscoped.bend
Normal file
3
tests/golden_tests/compile_file/def_pat_unscoped.bend
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
add $a b = (+ $a b)
|
||||||
|
|
||||||
|
main = (add 9 4)
|
8
tests/snapshots/compile_file__def_pat_unscoped.bend.snap
Normal file
8
tests/snapshots/compile_file__def_pat_unscoped.bend.snap
Normal 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))
|
Loading…
Reference in New Issue
Block a user