At the moment, i think i have to do this to pass two ChildClass object to the doSomethingSpecial method
def foo(a as ParentClass, b as ParentClass)
if a inherits ChildClass
if b inherits ChildClass
.doSomethingSpecial(a, b)
when this would be what i do in other languages
def foo(a as ParentClass, b as ParentClass)
if a inherits ChildClass and b inherits ChildClass
a = cast a as ChildClass
b = cast b as ChildClass
.doSomethingSpecial(a, b)
and this would be the ideal syntax
def foo(a as ParentClass, b as ParentClass)
if a inherits ChildClass and b inherits ChildClass
.doSomethingSpecial(a, b)
Is there a better way of doing it ?
Berseker59