Feedback
Constructor overloads can execute the wrong body for enum arguments
- Status
- Fixed
- Fixed in
- v26.10.3
- Area
- compiler
- Source discussion
- -
- Last updated
- 2026-10-20
Upvotes
0 upvotes
Uses your Objo forum account.
Public summary
Creating an instance with an enum argument can execute a constructor overload that accepts an Integer instead. The constructor matching the declared argument type should run, including when it has omitted optional arguments.