package test internal interface A { internal abstract fun foo(): T } internal final class B : test.A { public constructor B() internal final fun foo(): kotlin.Int } public/*package*/ open class Test { public/*package*/ constructor Test() public/*package*/ open fun test(): kotlin.Unit }