mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
Merge remote-tracking branch 'origin/main' into https-packages
This commit is contained in:
commit
b2beeb770e
85 changed files with 2666 additions and 1064 deletions
|
@ -2031,3 +2031,21 @@ fn recursive_function_and_union_with_inference_hole() {
|
|||
"#
|
||||
)
|
||||
}
|
||||
|
||||
#[mono_test]
|
||||
fn crash() {
|
||||
indoc!(
|
||||
r#"
|
||||
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