mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 08:11:12 +00:00
fix typo in tests
This commit is contained in:
parent
ca41a0339d
commit
ca9e86a56a
1 changed files with 15 additions and 1 deletions
|
@ -1117,7 +1117,21 @@ mod test_infer {
|
|||
\Foo x -> Foo x
|
||||
"#
|
||||
),
|
||||
"[ Foo (Attr.Attr a b) ]* -> [ Foo (Attr.Attr a b) ]*",
|
||||
"[ Foo a ]* -> [ Foo a ]*",
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn tag_union_pattern_match_ignored_field() {
|
||||
infer_eq(
|
||||
indoc!(
|
||||
r#"
|
||||
\Foo x _ -> Foo x "y"
|
||||
"#
|
||||
),
|
||||
// TODO investigate should `Foo a *` be `Foo a Str`, i.e. should it know that `Foo`
|
||||
// is used at `Str` elsewhere as a function? does it ever matter?
|
||||
"[ Foo a * ]* -> [ Foo a Str ]*",
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue