closes #6121
This commit is contained in:
parent
df13b2a892
commit
6f69bdd3a0
1 changed files with 21 additions and 0 deletions
|
|
@ -35,3 +35,24 @@ type
|
|||
|
||||
let table = newTable[string, Task]()
|
||||
table.del("task")
|
||||
|
||||
# bug #6121
|
||||
|
||||
import json
|
||||
|
||||
type
|
||||
|
||||
foo = object
|
||||
thing: string not nil
|
||||
|
||||
CTS = ref object
|
||||
subs_by_sid: Table[int, foo]
|
||||
|
||||
|
||||
proc parse(cts: CTS, jn: JsonNode) =
|
||||
|
||||
let ces = foo(
|
||||
thing: jn.getStr("thing")
|
||||
)
|
||||
|
||||
cts.subs_by_sid[0] = ces
|
||||
Loading…
Add table
Add a link
Reference in a new issue