Hello Everyone,
I am trying to understand if I am doing it the right way...
Whenever I try to use a variable inside an
if()
statement, which is specifically checking a property of the same variable, the Compiler is using smart casting.
Is this an expected behavior? or, am I doing something wrong?