// "Create function 'foo'" "true" import kotlin.properties.ReadOnlyProperty class A(val t: T) { val x: A by foo(t, "") private fun foo(t: T, s: String): ReadOnlyProperty, A> { throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. } }