parent
29226ce5b2
commit
51d81c4e23
2 changed files with 14 additions and 1 deletions
|
|
@ -38,3 +38,11 @@ var found: array[0..filesToCreate.high, bool]
|
|||
|
||||
echo found.len
|
||||
|
||||
# make sure empty arrays are assignable (bug #6853)
|
||||
const arr1: array[0, int] = []
|
||||
const arr2 = []
|
||||
let arr3: array[0, string] = []
|
||||
|
||||
doAssert(arr1.len == 0)
|
||||
doAssert(arr2.len == 0)
|
||||
doAssert(arr3.len == 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue