// "Create extension function 'A.foo'" "true" fun bar(b: Boolean) { } class A(val n: Int) fun A.test() { bar(foo(n)) } private fun A.foo(n: Int): Boolean { TODO("not implemented") //To change body of created functions use File | Settings | File Templates. }