In these cases;
MsgBox(obj.Test(i, 10))
MsgBox(obj.Test(20, j))
It works because upcasting an
Int16
to an
Int32
is safe, so the compiler that do that, and then you have a call where you pass two
Int32
s (which is the second function) as the
10
and
20
will be interpreted as
Int32
s unless specified.
Hope this helps,
Fredrik