Files
kotlin-fork/compiler/testData/diagnostics/tests/smartCasts/kt3224.kt
T
Ivan Kochurkin d0a4ca199d [FIR] Add UNCHECKED_CAST
Regenerate diagnostics code
2021-11-12 15:20:45 +03:00

10 lines
200 B
Kotlin
Vendored

// FIR_IDENTICAL
// Works already in M11
fun test(c : Class<*>) {
val sc = c <!UNCHECKED_CAST!>as Class<String><!>
// No ambiguous overload
c.getAnnotations();
sc.getAnnotations();
}