[recordFields] discriminator fields will be indicated by non-nil caseField and nil caseBranch

This commit is contained in:
Zahary Karadjov 2019-03-26 01:16:39 +02:00
parent cb9b6735ac
commit 3c57ca7555
1 changed files with 3 additions and 3 deletions

View File

@ -84,7 +84,7 @@ iterator recordFields*(typeImpl: NimNode): FieldDescription =
else:
doAssert false
recuseInto newTree(nnkRecCase, n[0])
recuseInto newTree(nnkRecCase, n[0]), n[0]
continue
of nnkIdentDefs: