Files
kotlin-fork/idea/testData/quickfix/createFromUsage/createFunction/call/afterSmartCastWithIs.kt
T
2015-03-11 23:34:00 +03:00

10 lines
243 B
Kotlin

// "Create function 'foo'" "true"
fun test(o: Any) {
if (o is String) foo(o)
}
fun foo(o: String) {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
}