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

11 lines
256 B
Kotlin

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