Feedback
Built-in enum properties can default to Nothing
- Status
- Fixed
- Fixed in
- v26.6.1
- Source discussion
- https://forum.objo.dev/d/244-bug-initlialisation-property
- Last updated
- 2026-06-03
Public summary
Uninitialised built-in enum-typed values such as TextAlignment defaulted to Nothing instead of the enum's default member. This could surface as TypeMismatchException: Expected Integer but got Nothing when the value was passed to native desktop properties that expect integer-backed enum values. TextAlignment should default to TextAlignment.Left (0).