mirror of
https://github.com/HigherOrderCO/Bend.git
synced 2024-11-05 04:51:40 +03:00
Add constructor as var name arity test
This commit is contained in:
parent
5e858f6024
commit
af732179b8
5
tests/golden_tests/compile_file/wrong_ctr_var_arity.hvm
Normal file
5
tests/golden_tests/compile_file/wrong_ctr_var_arity.hvm
Normal file
@ -0,0 +1,5 @@
|
||||
data Tup = (pair a b)
|
||||
|
||||
(foo pair) = pair
|
||||
|
||||
main = *
|
@ -0,0 +1,5 @@
|
||||
---
|
||||
source: tests/golden_tests.rs
|
||||
input_file: tests/golden_tests/compile_file/wrong_ctr_var_arity.hvm
|
||||
---
|
||||
In definition foo: Arity error. Constructor 'pair' expects 2 fields but was found 0.
|
Loading…
Reference in New Issue
Block a user