Files
kotlin-fork/compiler/testData/ir/irText/expressions/genericReceiverOnExtensionWithSmartcast.kt.txt

19 lines
293 B
Kotlin
Vendored

fun <F : CharSequence> F.bar() {
}
inline fun <reified T : CharSequence> test_1(x: Any) {
when {
x is T -> { // BLOCK
x /*as T */.bar<T>()
}
}
}
fun test_2(x: Any?) {
when {
x is CharSequence -> { // BLOCK
x /*as CharSequence */.bar<CharSequence>()
}
}
}