mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 08:34:33 +00:00
tests(solve_expr): try a mismatch
This commit is contained in:
parent
91d98d2463
commit
eb4a6109d6
1 changed files with 6 additions and 3 deletions
|
@ -653,13 +653,16 @@ mod solve_expr {
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn applied_tag_function_mismatch() {
|
fn applied_tag_function_mismatch() {
|
||||||
infer_eq_without_problem(
|
infer_eq(
|
||||||
indoc!(
|
indoc!(
|
||||||
r#"
|
r#"
|
||||||
\foo -> { x: [ foo, Foo ], y: [ foo, \x -> Foo x ] }
|
x : List [ Foo Str ]
|
||||||
|
x = List.map [ 1, 2 ] Foo
|
||||||
|
|
||||||
|
x
|
||||||
"#
|
"#
|
||||||
),
|
),
|
||||||
"",
|
"<type mismatch>",
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue