new len(openarray) implementation
This commit is contained in:
parent
8c993733b9
commit
0d8e6dda69
4 changed files with 22 additions and 5 deletions
9
tests/reject/tnolen.nim
Normal file
9
tests/reject/tnolen.nim
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
discard """
|
||||
line: 8
|
||||
msg: "Error: type mismatch: got (int)"
|
||||
"""
|
||||
|
||||
# please finally disallow Len(3)
|
||||
|
||||
echo len(3)
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue