Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recursive struct mapping not supported #2

Open
WizzardMaker opened this issue Apr 19, 2023 · 0 comments
Open

Recursive struct mapping not supported #2

WizzardMaker opened this issue Apr 19, 2023 · 0 comments

Comments

@WizzardMaker
Copy link
Owner

Structs that directly or indirectly define themself in the field tree generate a stack overflow in the parsing routine.

type A struct {
  BTest B
}

type B struct {
  ATest A
}

The parser should keep track of already visited types in the depth traversal and quit when encountering a loop

A -> B -> A |

This should be part of the Inspect Context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant