class Z is partial pass class A pass class X inherits A is partial pass class B pass class X inherits A is partial # .warning. already pass class Z inherits B is partial def hi print 'hi' class Test def main myThing = X() assert myThing inherits A # .warning. always bThing = Z() assert bThing inherits B # .warning. always