Files
kotlin/compiler/testData/diagnostics/tests/nullabilityAndSmartCasts/smartCastReceiverWithGenerics.kt
2014-10-18 11:06:53 +04:00

7 lines
120 B
Kotlin

fun test(a: Any?) {
if (a != null) {
<!DEBUG_INFO_SMARTCAST!>a<!>.foo(11)
}
}
fun <T> Any.foo(t: T) = t