class A interface T fun foo() { fun bar() { class Test : A(), T } }