Files
kotlin-fork/compiler/testData/diagnostics/tests/smartCasts/kt3224.kt
T
Mikhail Zarechenskiy ae3497c6ce Reduce highlighting range for UNCHECKED_CAST
#KT-18985 Fixed
2017-08-07 18:49:58 +03:00

9 lines
183 B
Kotlin
Vendored

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