This commit is contained in:
Andreas Rumpf 2019-06-26 06:55:43 +02:00 • committed by GitHub
commit 0f868b587b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 99 additions and 62 deletions

View file

@ -20,5 +20,17 @@ proc main =
main()
# bug #11563
type
MyTypeType = enum
Zero, One
MyType = object
case kind: MyTypeType
of Zero:
s*: seq[MyType]
of One:
x*: int
var t: MyType
let (a, d) = allocCounters()
discard cprintf("%ld %ld new: %ld\n", a, d, allocs)