Skip to content

Detect more trait related errors#122

Open
jongardiner wants to merge 1 commit into
masterfrom
jgardiner/trait-importing-checks
Open

Detect more trait related errors#122
jongardiner wants to merge 1 commit into
masterfrom
jgardiner/trait-importing-checks

Conversation

@jongardiner

Copy link
Copy Markdown
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