Return bug (Maybe?)
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.
Code:
... var = test(True) ... Sub test(b As Boolean) As Boolean ... Return ' causes a null exception in the caller ... End Sub
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.
Last edited by agraham : 03-02-2010 at 01:27 PM.
|