Files
kotlin-fork/j2k/testData/fileOrElement/annotations/jetbrainsNotNullChainExpr.kt
T
Alexander Udalov 3c859caf2b j2k: flatten test cases and testData directory structure
Move j2k/test/tests -> j2k/tests, j2k/test/testData -> j2k/testData
2015-01-03 00:52:59 +03:00

22 lines
451 B
Kotlin

// !forceNotNullTypes: false
// !specifyLocalVariableTypeByDefault: true
package test
class Foo {
fun execute() {
}
}
class Bar {
var fooNotNull = Foo()
var fooNullable: Foo? = null
}
class Test {
public fun test(barNotNull: Bar, barNullable: Bar?) {
barNotNull.fooNotNull.execute()
barNotNull.fooNullable!!.execute()
barNullable!!.fooNotNull.execute()
barNullable.fooNullable!!.execute()
}
}