interface IFoo get bar as int class Test def main is shared pass def comp(a as IFoo, b as IFoo) as bool return a.equals(b) # equals() comes from Object, not the interface