This commit is contained in:
Clyybber 2021-04-27 13:03:26 +02:00 • committed by GitHub
commit b03d6c9b2f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 3 deletions

View file

@ -27,6 +27,7 @@ finalizer
aaaaa
hello
ok
true
closed
destroying variable: 20
destroying variable: 10
@ -422,3 +423,13 @@ proc test3 =
static: test3() # was buggy
test3()
# bug #17712
proc t17712 =
var ppv = new int
discard @[ppv]
var el: ref int
el = [ppv][0]
echo el != nil
t17712()