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

Parse controllers with class fields without value correctly #21

Merged
merged 2 commits into from
Nov 20, 2023

Conversation

djfpaagman
Copy link
Contributor

I took a stab at fixing the bug I reported in #20.

Let me know what you think! I've added an extra test, doubted to extend the first test to have the class fields, but then it's not clear why they're there.

@djfpaagman
Copy link
Contributor Author

djfpaagman commented Nov 17, 2023

I've changed the test a bit (and fixed the syntax error) to just test for no errors being set. Also added the example class fields so all possibles syntaxes are covered.

Comment on lines +157 to +158
instanceField
instanceFieldWithInitializer = "instance field"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm surprised that this is even valid syntax 🤯

Thanks for catching this!

@marcoroth marcoroth merged commit a789c6f into marcoroth:main Nov 20, 2023
5 checks passed
@marcoroth
Copy link
Owner

Thanks @djfpaagman! 🙏🏼

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

Successfully merging this pull request may close these issues.

None yet

2 participants