fixes #12747 [backport] (#13651)

* fixes #12747
* fix tests
* improve code style

Co-authored-by: cooldome <ariabushenko@bk.ru>
(cherry picked from commit 613ea6e85e)
This commit is contained in:
cooldome
2020-03-16 12:40:40 +00:00
committed by narimiran
parent 349039678a
commit 02d7a181f6

View File

@@ -26,3 +26,14 @@ var output = represent(s)
for item in output():
echo item
#------------------------------------------------------------------------------
# Issue #12747
type
ABC = ref object
arr: array[0x40000, pointer]
let a = ABC()
for a in a.arr:
assert a == nil