Files
kotlin-fork/j2k/tests/testData/ast/annotations/file/jetbrainsNotNullChainExpr.kt
T
2013-02-21 14:24:25 +01:00

17 lines
372 B
Kotlin

package test
open class Foo() {
open fun execute() : Unit {
}
}
open class Bar() {
var fooNotNull : Foo = Foo()
var fooNullable : Foo? = null
}
open class Test() {
public open fun test(barNotNull : Bar, barNullable : Bar?) : Unit {
barNotNull.fooNotNull.execute()
barNotNull.fooNullable?.execute()
barNullable?.fooNotNull?.execute()
barNullable?.fooNullable?.execute()
}
}