Add a crash test to mono

This commit is contained in:
Ayaz Hafiz 2022-11-22 15:50:50 -06:00
parent c7ef1668d4
commit 220c8a8e64
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
2 changed files with 24 additions and 1 deletions

View file

@ -2035,11 +2035,16 @@ fn recursive_function_and_union_with_inference_hole() {
fn crash() {
indoc!(
r#"
app "test" provides [getInfallible] to "./platform"
app "test" provides [main] to "./platform"
getInfallible = \result -> when result is
Ok x -> x
_ -> crash "turns out this was fallible"
main =
x : [Ok U64, Err Str]
x = Ok 78
getInfallible x
"#
)
}