Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
9fc4d94d04f972782fee2dc5b3b25d052d88601a
/
.
/
compiler
/
testData
/
diagnostics
/
tests
/
nullabilityAndSmartCasts
/
kt2195.kt
blob: db461dacb7dde13f42f1303f7445e5bbe25e4161 [
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
)
{
<!
DEBUG_INFO_SMARTCAST
!>
errorCallback
<!>()
}
}