mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-10 08:31:29 +00:00
CHECKCAST is redundant if the corresponding static type exactly matches the target type. CHECKCAST instructions to-be-reified should not be eliminated. KT-14811 Unnecessary checkcast generated in parameterized functions KT-14963 unnecessary checkcast java/lang/Object
3 lines
45 B
Kotlin
Vendored
3 lines
45 B
Kotlin
Vendored
fun <T> f(o: Any): T = o as T
|
|
|
|
// 0 CHECKCAST |