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

Improve member access in semantic check #25

Open
Brofian opened this issue Jan 23, 2025 · 1 comment
Open

Improve member access in semantic check #25

Brofian opened this issue Jan 23, 2025 · 1 comment
Assignees

Comments

@Brofian
Copy link
Owner

Brofian commented Jan 23, 2025

  1. If the semantic check fails to find a matching member in one class, it should search for that member in the parent class and return that instead
  2. Members should be checked for access modifiers and throw an error, if the referenced member is not allowed to be accessed from the current scope
@Brofian
Copy link
Owner Author

Brofian commented Jan 26, 2025

Part 1 (member inheriting) will be done by PR #37

Reminder for part 2: We would need a call origin to be passed to the member check, so we can compare the origin class or package name according to the access modifier

@Brofian Brofian self-assigned this Jan 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant