NimYAML icon indicating copy to clipboard operation
NimYAML copied to clipboard

Dumping doesn't work at compile time

Open flyx opened this issue 10 months ago • 0 comments

import yaml
type
  Node = ref object
    name1: string = "A"
    name2: string = "B"
static:
  echo Dumper().dump(Node())

Compiler output:

Error: unhandled exception: field 'sym' is not accessible for type 'TNode' using 'kind = nkNilLit' [FieldDefect]

This seems to happen somewhere in macro execution. Not entirely sure where though.

flyx avatar Aug 30 '23 19:08 flyx