supervillain icon indicating copy to clipboard operation
supervillain copied to clipboard

Self-referential (aka Recursive) types cause an infinite loop

Open Southclaws opened this issue 2 years ago • 1 comments

Simple one, just needs a lookup table of what's already been processed.

type X {
  Children []X
}

Or

type Y {
  Child X
}
type X {
  Children []Y
}

etc

Southclaws avatar Nov 13 '21 10:11 Southclaws