fix: found issue with record access on Pairs

This commit is contained in:
microproofs
2024-03-31 01:27:00 -04:00
committed by Kasey
parent cb1ca84dad
commit 7b5ad961e2
3 changed files with 45 additions and 13 deletions

View File

@@ -6,7 +6,7 @@ type Foo {
}
fn get_constr(data: Data) -> Int {
builtin.un_constr_data(data).1st
builtin.un_constr_data(data).fst
}
test foo() {
@@ -23,7 +23,7 @@ fn map(list: List<a>, f: fn(a) -> b) -> List<b> {
}
fn get_fields(data: Data) -> List<Int> {
builtin.un_constr_data(data).2nd
builtin.un_constr_data(data).snd
|> map(builtin.un_i_data)
}