Skip to content

Maximum call stack size exceeded when I add in a validation function? #1670

Answered by msujew
durianwaffle asked this question in Q&A
Discussion options

You must be logged in to vote

No idea why it works in Lox, it's likely a very specific set of circumstances. It's not supposed to work like this. You either write:

type NamedElement = VariableDeclaration | ...;

or

VariableDeclaration returns NamedElement: ...;

but not both.

Replies: 1 comment 9 replies

Comment options

You must be logged in to vote
9 replies
@durianwaffle
Comment options

@msujew
Comment options

@durianwaffle
Comment options

@msujew
Comment options

Answer selected by durianwaffle
@durianwaffle
Comment options

@msujew
Comment options

@durianwaffle
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants