Skip to content

Dumping doesn't work at compile time #138

@flyx

Description

@flyx
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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions