Files
kotlin-fork/idea/testData/quickfix/createFromUsage/createFunction/call/afterExtensionFunOnTrait.kt
T
2015-02-20 17:28:41 +03:00

12 lines
286 B
Kotlin

// "Create extension function 'foo'" "true"
trait T
fun test(t: T) {
val b: Boolean = t.foo("1", 2)
}
fun T.foo(s: String, i: Int): Boolean {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
}