It may not count as a bug but an explicit Return without a value in a typed Sub appears to return null in the IDE. Compiled there is no problem as a default return value is provided, presumably to satisfy the C# compiler.
B4X:
...
var = test(True)
...
Sub test(b As Boolean) As Boolean
...
Return ' causes a null exception in the caller
...
End Sub
Last edited: