mirror of
https://github.com/roc-lang/roc.git
synced 2025-07-24 06:55:15 +00:00
Check in some more work
This commit is contained in:
parent
6adb88beee
commit
ac752adc7c
6 changed files with 78 additions and 22 deletions
|
@ -7775,4 +7775,20 @@ mod solve_expr {
|
|||
"{}",
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn match_on_result_with_uninhabited_error_branch() {
|
||||
infer_eq_without_problem(
|
||||
indoc!(
|
||||
r#"
|
||||
x : Result Str []
|
||||
x = Ok "abc"
|
||||
|
||||
when x is
|
||||
Ok s -> s
|
||||
"#
|
||||
),
|
||||
"",
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue