Feedback
Type checker misses string operand in arithmetic expression
- Status
- Fixed
- Fixed in
- v26.6.5
- Source discussion
- https://forum.objo.dev/d/413-bad-code-analyser-doesnt-warm
- Last updated
- 2026-06-21
Upvotes
0 upvotes
Uses your Objo forum account.
Public summary
The code analyser does not report an error when arithmetic uses a string operand produced by a method call on a numeric literal. For example, Var s As String = (progress * 100.toString()) + "%" compiles/analyser-passes but fails at runtime with TypeMismatchException: Operands must be numbers for '*'.