Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolve/cfg/safeCalls.kt
T
2020-03-19 09:51:01 +03:00

19 lines
192 B
Kotlin
Vendored

// !DUMP_CFG
interface A {
fun foo(): A
fun bar(): A
}
interface B {
val foo: B
val bar: B
}
fun test_1(x: A?) {
x?.foo()?.bar()
}
fun test_2(x: B?) {
x?.foo?.bar
}