mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-29 12:24:45 +00:00
Fix typo
This commit is contained in:
parent
f36d54f51e
commit
48a7adfba7
2 changed files with 7 additions and 5 deletions
7
tests/bug/infer_union_array.er
Normal file
7
tests/bug/infer_union_array.er
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
f x: [{""}; _] = None
|
||||||
|
|
||||||
|
arr = ["aaa"]
|
||||||
|
for! arr, elem =>
|
||||||
|
# elem: Never
|
||||||
|
a = ["", elem] # [{"", "aaa"}; 2]
|
||||||
|
f a
|
|
@ -1,5 +0,0 @@
|
||||||
f x: [Str; _] = None
|
|
||||||
|
|
||||||
arr = ["aaa"]
|
|
||||||
for! arr, elem =>
|
|
||||||
f ["", elem]
|
|
Loading…
Add table
Add a link
Reference in a new issue