// "Create member function 'A.foo'" "true" class A(val n: T) { inner class B(val m: U) { fun test(): A { return this@A.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. } }