Add constructor as var name arity test

This commit is contained in:
imaqtkatt 2024-02-02 16:12:14 -03:00
parent 5e858f6024
commit af732179b8
2 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,5 @@
data Tup = (pair a b)
(foo pair) = pair
main = *

View File

@ -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.