class Thing var _name as String cue init(name as String) base.init _name = name def toString as String is override return _name class Test def main is shared a as Thing? = Thing('a') b = Thing('b') if a a = b assert a is b x as Object = Thing('x') if x inherits Thing x = b assert x is b