mirror of
https://github.com/roc-lang/roc.git
synced 2025-11-25 21:37:48 +00:00
Warn on the presence of unnecessary wildcards in output positions
This commit is contained in:
parent
d55dbbf0ae
commit
cfe7c8e5ef
17 changed files with 151 additions and 106 deletions
|
|
@ -1531,7 +1531,7 @@ fn polymorphic_tag() {
|
|||
assert_evals_to!(
|
||||
indoc!(
|
||||
r#"
|
||||
x : [Y U8]*
|
||||
x : [Y U8]
|
||||
x = Y 3
|
||||
x
|
||||
"#
|
||||
|
|
@ -1695,7 +1695,7 @@ fn instantiate_annotated_as_recursive_alias_toplevel() {
|
|||
|
||||
Value : [Nil, Array (List Value)]
|
||||
|
||||
foo : [Nil]*
|
||||
foo : [Nil]
|
||||
foo = Nil
|
||||
|
||||
it : Value
|
||||
|
|
@ -1723,7 +1723,7 @@ fn instantiate_annotated_as_recursive_alias_polymorphic_expr() {
|
|||
main =
|
||||
Value : [Nil, Array (List Value)]
|
||||
|
||||
foo : [Nil]*
|
||||
foo : [Nil]
|
||||
foo = Nil
|
||||
|
||||
it : Value
|
||||
|
|
@ -1750,7 +1750,7 @@ fn instantiate_annotated_as_recursive_alias_multiple_polymorphic_expr() {
|
|||
main =
|
||||
Value : [Nil, Array (List Value)]
|
||||
|
||||
foo : [Nil]*
|
||||
foo : [Nil]
|
||||
foo = Nil
|
||||
|
||||
v1 : Value
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue