Ok the title is a bit insane, but basically I'm getting an internal compiler error when i have 2 properties with the same name and return type (must be a class - valuet types dont cause this error). Attempting to call a method on the return of this property causes a "Specified cast is not valid" internal error.
code:
class Foo:
static _bar=Foo()
coo=5
static Bar:
get:
return _bar
static Bar:
get:
return _bar
print Foo.Bar.coo