# for if-inherits smarts, support: if (someVar = someExpr) inherits SomeClass ... class Test def main is shared Test().run def run t as Object = 0 t = Test() if t inherits Test assert t.one == 1 t = 0 if t inherits Test assert false if (t = .something) inherits Test assert t.one == 1 # used to not compile get something as Object return Test() get one as int return 1