| 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>() | |
| } | |
| } | |
| } |