interface IFoo def foo struct Stru def foo pass class Test implements IFoo def foo pass def process(stru as Stru) stru.foo # use System.Object methods: assert stru.equals(stru) assert stru.getHashCode <> 0 or stru.getHashCode == 0 assert stru.toString.length assert stru.getType is Stru def main is shared Test().process(Stru())