Files
kotlin-fork/compiler/testData/diagnostics/tests/nullabilityAndSmartCasts/smartCastedReceiverWithGenerics.kt
T
2014-10-01 18:52:52 +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