KT-2195 error "Only safe calls are allowed ..." but it is function param (val)
#KT-2195
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
//KT-2195 error "Only safe calls are allowed ..." but it is function param (val)
|
||||
package foo
|
||||
|
||||
private fun sendCommand<T>(errorCallback: (()->Unit)? = null) {
|
||||
if (errorCallback != null) {
|
||||
errorCallback()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user