mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 22:09:09 +00:00
Add a crash test to mono
This commit is contained in:
parent
c7ef1668d4
commit
220c8a8e64
2 changed files with 24 additions and 1 deletions
|
@ -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
|
||||
"#
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue