new len(openarray) implementation

This commit is contained in:
Araq 2011-12-31 18:15:20 +01:00
commit 0d8e6dda69
4 changed files with 22 additions and 5 deletions

9
tests/reject/tnolen.nim Normal file
View file

@ -0,0 +1,9 @@
discard """
line: 8
msg: "Error: type mismatch: got (int)"
"""
# please finally disallow Len(3)
echo len(3)