Files
kotlin-fork/idea/testData/inspectionsLocal/cascadeIf/withAnnotation.kt
T
2017-07-26 15:18:30 +03:00

13 lines
245 B
Kotlin
Vendored

// WITH_RUNTIME
fun foo(a: Any) {
<caret>if (a == "") {
println(a)
}
else if (a is String) {
println(a)
}
else if (a is List<*>) {
@Suppress("UNCHECKED_CAST")
println(a as List<String>)
}
}