420fbad73d
^KT-62863 Fixed
19 lines
293 B
Kotlin
Vendored
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>()
|
|
}
|
|
}
|
|
}
|