Feedback
Compiler permits subclasses to hide inherited built-in properties
- Status
- Fixed
- Fixed in
- v26.9.1
- Area
- -
- Source discussion
- https://forum.objo.dev/d/1034-create-subclass-of-listbox-and-override-properties-columncount
- Last updated
- 2026-09-08
Upvotes
0 upvotes
Uses your Objo forum account.
Public summary
Declaring a property in a subclass with the same name as an inherited built-in property is incorrectly accepted. The subclass property captures reads and writes without updating the built-in state, so code can appear to work while the underlying control behaves incorrectly. For example, a custom ListBox.ColumnCount setter runs, but the native ListBox columns are never created. The compiler should reject inherited built-in property hiding just as it already rejects hiding properties declared by user classes.