Fix definition of empty records

This commit is contained in:
Emery Hemingway 2021-09-06 15:36:08 +02:00
parent 13854f88c7
commit d9cf6dbab4
1 changed files with 1 additions and 1 deletions

View File

@ -198,7 +198,7 @@ proc nimTypeOf(known: var TypeTable; sn: SchemaNode; name = ""): PNode =
result = nn(nkObjectTy,
newEmpty(),
newEmpty(),
nn(nkDiscardStmt, newEmpty()))
nn(nkRecList, nn(nkDiscardStmt, newEmpty())))
else:
let recList = nkRecList.newNode()
for i, field in sn.nodes: