Feedback
Inherited nested enumerations resolve correctly in subclasses
- Status
- Fixed
- Fixed in
- v26.9.2
- Area
- -
- Source discussion
- https://forum.objo.dev/d/1051-enumerations-shared-between-classes/6
- Last updated
- 2026-09-16
Upvotes
0 upvotes
Uses your Objo forum account.
Public summary
When a subclass refers to an enumeration nested in its superclass by short name, an unrelated class declaring an enumeration with the same short name can cause an ambiguity error. The compiler should resolve the nearest matching nested enumeration from the current class hierarchy before considering unrelated nested enumerations. Existing class-local lookup should remain unchanged, and genuinely unscoped references should still require qualification.