add extra test for unresolved type variables

This commit is contained in:
Folkert 2021-05-22 17:20:52 +02:00
parent 3b47fbc89a
commit 6bc72ee804

View file

@ -2442,3 +2442,26 @@ fn module_thunk_is_function() {
RocStr
);
}
#[test]
#[should_panic(expected = "Roc failed with message: ")]
fn hit_unresolved_type_variable() {
assert_evals_to!(
indoc!(
r#"
app "test" provides [ main ] to "./platform"
main : Str
main =
(accept Bool.isEq) "B"
accept : * -> (b -> b)
accept = \_ ->
\input -> input
"#
),
RocStr::from_slice(b"B"),
RocStr
);
}