Files
kotlin-fork/idea/testData/inspectionsLocal/branched/ifThenToSafeAccess/implicitReceiverInApply.kt
T
2018-01-29 17:43:01 +03:00

18 lines
237 B
Kotlin
Vendored

// PROBLEM: none
// WITH_RUNTIME
class Foo
class Test {
fun foo(): Any = ""
fun bar() {}
fun test(a: Any) {
foo().apply {
<caret>if (this is Foo) {
bar()
}
}
}
}