Files
kotlin-fork/idea/testData/quickfix/surroundWithNullCheck/invokeFuncUnsafe.kt.after
T
2016-06-13 15:33:36 +03:00

7 lines
115 B
Plaintext
Vendored

// "Surround with null check" "true"
fun foo(exec: (() -> Unit)?) {
if (exec != null) {
exec()
}
}