Feedback
Integer-to-Double widening keeps Integer runtime value
- Status
- Fixed
- Fixed in
- v26.6.2
- Source discussion
- https://forum.objo.dev/d/280-crash-class-scrollbox
- Last updated
- 2026-06-07
Public summary
Assigning an integer literal or expression to a variable declared As Double can leave an Integer value in the VM at runtime. Code that then calls a Double method, such as ToInteger(), can fail with RuntimeException: Only instances have methods. This surfaced in a ScrollBox.ContentHeight assignment, but the affected behaviour is numeric widening.