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

Fix crash on type mark error for protected func. #1084

Merged
merged 1 commit into from
Dec 1, 2024

Conversation

NikLeberg
Copy link
Contributor

Another crash, another fix.

In generating the hint for the type mark error, nvc crashed as class_of did not handle protected function calls. I tried to fix it by adding T_PROT_FCALL and preemptively also adding T_PROT_PCALL. At various places in the codebase T_PROT_FCALL and T_FCALL are treated the same. So I thought that could be done here as well.

Cheers

@nickg nickg merged commit 0c1a7e7 into nickg:master Dec 1, 2024
12 checks passed
@NikLeberg NikLeberg deleted the class_of_protected branch December 1, 2024 21:11
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.

2 participants