interface X is partial def foo interface X is partial def bar struct Y is partial def foo pass struct Y is partial def bar pass class P def main is shared pass def doX(x as X) x.foo x.bar def doY(y as Y) y.foo y.bar