How to do recursive structs?
I'm trying to implement a json decoder, but I can't even make a struct that will hold the result. Here is the code I'm trying to run:
I get the error:
It Seems that Mojo doesn't like the recursivity of my struct. It it something that should be reported or am I misunderstanding something?
2 Replies
To get a smaller reproducer with types from the stdlib:
I'm seeing the same for my self referential structs. I'm guessing the language server is overwhelmed because it blows up with a different error for me, but if I pare it down to just the self referential attribute I get the same error.