class A is partial def one as int return 1 class A is partial def two as int return 2 class P def main a = A() assert a.one == 1 assert a.two == 2