mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 16:21:11 +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]
|
||||
fn applied_tag_function_mismatch() {
|
||||
infer_eq_without_problem(
|
||||
infer_eq(
|
||||
indoc!(
|
||||
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