type
Table[Key, Value] = object
keys: seq[Key]
values: seq[Value]
when not (Key is string):
deletedKeys: seq[bool]
#when (Key is not string):
#deletedKeys: seq[bool]
var
var1:Table[string,int]
var2:Table[int,int]
echo var1
echo var2
The output is as follows when use the first "when" statement:
(keys: @[], values: @[], deletedKeys: @[])
(keys: @[], values: @[], deletedKeys: @[])
The output is as follows when use the second "when" statement:
(keys: @[], values: @[])
(keys: @[], values: @[], deletedKeys: @[])
Is this a bug ?