Files
kotlin-fork/j2k/tests/testData/ast/annotations/jetbrainsNotNullChainExpr.kt
T
Pavel Talanov d69c61c972 Converter:
Preserve white spaces for top members (classes, package statements, comments)
2013-12-22 16:49:54 +04:00

20 lines
413 B
Kotlin

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