* fix #14294 * fix orc as well Co-authored-by: cooldome <ariabushenko@bk.ru>
This commit is contained in:
parent
03c146cd93
commit
fee71d466c
2 changed files with 31 additions and 2 deletions
|
|
@ -6,7 +6,9 @@ Success
|
|||
Hello
|
||||
1
|
||||
2
|
||||
0'''
|
||||
0
|
||||
List
|
||||
'''
|
||||
cmd: '''nim c --gc:arc $file'''
|
||||
"""
|
||||
|
||||
|
|
@ -145,3 +147,25 @@ proc bug13105 =
|
|||
bug13105()
|
||||
|
||||
echo getOccupiedMem() - startMem
|
||||
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# issue #14294
|
||||
|
||||
import tables
|
||||
|
||||
type
|
||||
TagKind = enum
|
||||
List = 0, Compound
|
||||
|
||||
Tag = object
|
||||
case kind: TagKind
|
||||
of List:
|
||||
values: seq[Tag]
|
||||
of Compound:
|
||||
compound: Table[string, Tag]
|
||||
|
||||
var a = Tag(kind: List)
|
||||
var b = a
|
||||
echo a.kind
|
||||
var c = a
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue