This commit is contained in:
Araq
2017-11-23 01:22:12 +01:00
parent df13b2a892
commit 6f69bdd3a0

View File

@@ -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