Feedback
Enum values allow invalid chained member access
- Status
- Fixed
- Fixed in
- v26.8.6
- Source discussion
- https://forum.objo.dev/d/963-analyser-doesnt-see-the-problem
- Last updated
- 2026-08-29
Upvotes
0 upvotes
Uses your Objo forum account.
Public summary
The analyser accepts enum member access through an enum value, allowing invalid chains such as System.Platforms.Windows.macOS. Enum members should only be accessed through the enum type (or contextual dot shorthand), so the invalid access should produce a compile-time diagnostic.