parent
2f1a1b7106
commit
0f868b587b
4 changed files with 99 additions and 62 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue