You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#[D20190620T000734KEY BUG discriminator CT quote doError: a case selecting discriminator 'kind' with value 'k2' appears in the object construction, but the field(s) 'regs' are in conflict with this value. return @[Foo(kind: k1), Foo(kind: k2)]]#typeKind=enum k1, k2
typeFoo=refobjectcase kind: Kind of k1:
regs: string of k2:
discardimport std/[macros]
procfun(): auto=return@[Foo(kind: k1), Foo(kind: k2)]
macroparsefGen*(): untyped=let matchers =fun()
result=newStmtList()
templatebar() =const a4 =fun()
let n =getAstbar() # okresult.addquotedo:
const a1 = `matchers` # BUG# const a2 = fun() # okprocmain() =parsefGen()
main()
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: