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

Detect more trait related errors #122

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jongardiner
Copy link
Contributor

  • Fixes bug with old version where duplicate traits and methods could be inserted into a class.
  • Won't import identical abstract methods from a trait, but will let you declare them.
  • Throw an error when importing the same method from multiple traits (use aliasing and insteadof to avoid).
  • Duplicate properties must be identical type, visibility, and default literal value in order to be imported from a trait.
  • Duplicate constants must be identical type, visibility, and default literal value in order to be import from a trait.
  • All classes and enums checked for duplicate method names.
  • Todo: index phase silently discards errors and tries to continue, but analysis phase emits errors.

… be inserted into a class.

- Won't import identical abstract methods from a trait, but will let you declare them.
- Throw an error when importing the same method from multiple traits (use aliasing and insteadof to avoid).
- Duplicate properties must be identical type, visibility, and default literal value in order to be imported from a trait.
- Duplicate constants must be identical type, visibility, and default literal value in order to be import from a trait.
- All classes and enums checked for duplicate method names.
- Todo: index phase silently discards errors and tries to continue, but analysis phase emits errors.
@jongardiner jongardiner requested a review from a team as a code owner September 6, 2024 16:00
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.

1 participant