class A fun foo() { interface Z: A {} fun bar() { class O2: Z {} } }