Files
kotlin-fork/idea/testData/inspectionsLocal/foldInitializerAndIfToElvis/UsedInsideInTemplate.kt
T

13 lines
175 B
Kotlin
Vendored

// PROBLEM: none
interface A {
val s: String
}
fun foo() = Any()
fun test(): String {
val y = foo()
<caret>if (y !is A) return "Expected A: $y"
return y.s
}