Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
9fc4d94d04f972782fee2dc5b3b25d052d88601a
/
.
/
compiler
/
testData
/
diagnostics
/
tests
/
nullabilityAndSmartCasts
/
kt2195.fir.kt
blob: 673e4ea7220393c4c903bcf63ee9537d8b42ad22 [
file
]
//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
()
}
}