We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Not sure if it's a bug or design decision, but I'm confused as to why one of these works, but the other doesn't.
Children : [Empty, Text Str, Elements (List Element)] # (1) Doesn't work Element : { tag : Str, attributes : List Attribute, children : Children, } # (2) Works Element : [ Element { tag : Str, attributes : List Attribute, children : Children, }, ]
With the error being:
Recursion in aliases is only allowed if recursion happens behind a tagged union, at least one variant of which is not recursive
I would imagine (1) would still work, since the recursion seems to happen behind Children, which is a tagged union.
Children
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Not sure if it's a bug or design decision, but I'm confused as to why one of these works, but the other doesn't.
With the error being:
I would imagine (1) would still work, since the recursion seems to happen behind
Children
, which is a tagged union.The text was updated successfully, but these errors were encountered: