Wrap opaque types in the repl with the appropriate opaque wrapper

Closes #3504
This commit is contained in:
Ayaz Hafiz 2022-07-13 17:45:13 -04:00
parent cb25bf0f48
commit 9b7950f765
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
6 changed files with 30 additions and 8 deletions

View file

@ -1024,7 +1024,7 @@ fn opaque_apply() {
@Age 23
"#
),
"23 : Age",
"@Age 23 : Age",
)
}
@ -1038,7 +1038,7 @@ fn opaque_apply_polymorphic() {
@F (Package "" { a: "" })
"#
),
r#"Package "" { a: "" } : F Str { a : Str }"#,
r#"@F (Package "" { a: "" }) : F Str { a : Str }"#,
)
}
@ -1054,7 +1054,7 @@ fn opaque_pattern_and_call() {
f (@F (Package A {}))
"#
),
r#"Package {} A : F {} [A]*"#,
r#"@F (Package {} A) : F {} [A]*"#,
)
}
@ -1189,6 +1189,6 @@ fn opaque_wrap_function() {
List.map [1u8, 2u8, 3u8] @A
"#
),
"[1, 2, 3] : List (A U8)",
"[@A 1, @A 2, @A 3] : List (A U8)",
);
}