mirror of
https://github.com/nim-lang/Nim.git
synced 2026-07-18 23:11:36 +00:00
closes #6121
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user