Files
kotlin-fork/compiler/testData/ir/irText/expressions/sam/genericSamSmartcast.kt.txt
T
Victor Petukhov ee728b6902 Use the new type inference for top-level callable reference resolution
^KT-47797 Fixed
^KT-47987 Fixed
^KT-45034 Fixed
^KT-48446 Fixed
^KT-13934 Fixed
2021-09-27 16:12:27 +03:00

13 lines
280 B
Plaintext
Vendored

fun f(x: Any): String {
when {
x is A<*> -> { // BLOCK
return x /*as A<*> */.call(block = local fun <anonymous>(y: Any?): @FlexibleNullability String? {
return "OK"
}
/*-> @FlexibleNullability I<Nothing>? */) /*!! String */
}
}
return "Fail"
}