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

Parser Bug #1192

Open
mpyen3 opened this issue Nov 25, 2024 · 1 comment
Open

Parser Bug #1192

mpyen3 opened this issue Nov 25, 2024 · 1 comment

Comments

@mpyen3
Copy link

mpyen3 commented Nov 25, 2024

// Don't parse until there's enough to disambiguate 
class Bar {
  bar "pay" | "pay_without_creditcard" 
}
@hellovai
Copy link
Contributor

hellovai commented Nov 25, 2024

Thanks for the report!

For whoever takes this: literals should require the field to be completed before parsing. partial parsing can lead to wonky type casting as in that example

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

2 participants