Closed sungchulTW closed 1 year ago
Can reproduce. Seems to be a compiler bug, created a Nim issue.
A workaround would be:
type PathDocument {.sparse.} = ref object
`$ref`: Option[string]
others: Option[string]
Has been fixed in Nim compiler.
type PathDocument = ref object
$ref
{.defaultVal: none(string).}: Option[string] others {.defaultVal: none(string).}: Option[string]Hello. First of all, Thank you for your awesome package! While I am using NimYAML, I observed the above object always get missing '$ref' error dispite the fact that I already set the defaultVal.
Is this a known issue?
Thank you.