Warn on the presence of unnecessary wildcards in output positions

This commit is contained in:
Ayaz Hafiz 2022-10-26 10:49:19 -05:00
parent d55dbbf0ae
commit cfe7c8e5ef
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
17 changed files with 151 additions and 106 deletions

View file

@ -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