Merge branch 'main' into underivable-rigid-better-error

Signed-off-by: Ayaz <20735482+ayazhafiz@users.noreply.github.com>
This commit is contained in:
Ayaz 2022-11-25 16:33:57 -06:00 committed by GitHub
commit 15e372373a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
164 changed files with 5187 additions and 3909 deletions

View file

@ -8352,4 +8352,20 @@ mod solve_expr {
@"translateStatic : [Element (List a)] as a -[[translateStatic(0)]]-> [Element (List b)]* as b"
)
}
#[test]
fn infer_contextual_crash() {
infer_eq_without_problem(
indoc!(
r#"
app "test" provides [getInfallible] to "./platform"
getInfallible = \result -> when result is
Ok x -> x
_ -> crash "turns out this was fallible"
"#
),
"[Ok a]* -> a",
);
}
}