fixes #12747 [backport] (#13651)

* fixes #12747
* fix tests
* improve code style

Co-authored-by: cooldome <ariabushenko@bk.ru>
This commit is contained in:
cooldome 2020-03-16 12:40:40 +00:00 • committed by GitHub
commit 613ea6e85e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 25 additions and 5 deletions

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