Skip to content

Pointers to self rendered incorrectly #17

@erikgrinaker

Description

@erikgrinaker

Consider the example given in the README:

type Circular struct {
	Self *Circular
}

selfref := Circular{}
selfref.Self = &selfref

This produces the following output:

main.Circular{
  Self: &main.Circular{// p0
    Self: p0,
  },
}

While the expected output is:

main.Circular{// p0
  Self: p0,
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions