// "Create member function 'A.B.foo'" "true" class A(val n: T) { inner class B(val m: U) { fun test(): A { return this.foo(2, "2") } private fun foo(i: Int, s: String): A { TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } }