class { (:debug) const IS_RELEASE = false; (:release) const IS_RELEASE = true; function foo() as Void { var s1 = "release: " + IS_RELEASE; // The operator '+' is undefined for the argument type '$.Toybox.Lang.Boolean'. var b = IS_RELEASE; var s2 = "release: " + b; // this is OK } }
In the above code you can see that a constant boolean is treated differently than a variable with boolean value.
SDK 8.1.0, fr630, strict typechecker