Files
kotlin-fork/compiler/testData/diagnostics/tests/nullabilityAndSmartCasts/kt2195.fir.kt
T

8 lines
223 B
Kotlin
Vendored

//KT-2195 error "Only safe calls are allowed ..." but it is function param (val)
package foo
private fun <T> sendCommand(errorCallback: (()->Unit)? = null) {
if (errorCallback != null) {
errorCallback()
}
}