Feedback
Compiler accepts non-method AddressOf handler targets
- Status
- Fixed
- Fixed in
- v26.6.8
- Source discussion
- https://forum.objo.dev/d/485-analyzer-doesn-check-if-addressof-parameter-are-a-subfunction
- Last updated
- 2026-06-30
Upvotes
0 upvotes
Uses your Objo forum account.
Public summary
The compiler accepts AddressOf targets that resolve to variables or other non-method values when wiring event handlers. For example, AddHandler bt.Pressed, AddressOf tx compiles when tx is a TextField, but the handler target should be a Sub or Function.