package test2 import test.A fun foo(): A.Companion.B { return A.Companion.B(A()) }