Update mono test

This commit is contained in:
Ayaz Hafiz 2022-09-21 13:41:20 -05:00 committed by Brian Hicks
parent 0f4c848978
commit 56c2936ebd
No known key found for this signature in database
GPG key ID: C4F324B9CAAB0D50
2 changed files with 9 additions and 5 deletions

View file

@ -1,7 +1,11 @@
procedure Bool.2 ():
let Bool.11 : Int1 = true;
ret Bool.11;
procedure Test.0 ():
let Test.7 : Int1 = true;
if Test.7 then
let Test.6 : Int1 = CallByName Bool.2;
if Test.6 then
Error voided tag constructor is unreachable
else
let Test.6 : Str = "abc";
ret Test.6;
let Test.5 : Str = "abc";
ret Test.5;

View file

@ -1958,7 +1958,7 @@ fn unreachable_void_constructor() {
x : []
main = if True then Ok x else Err "abc"
main = if Bool.true then Ok x else Err "abc"
"#
)
}