3c859caf2b
Move j2k/test/tests -> j2k/tests, j2k/test/testData -> j2k/testData
22 lines
451 B
Kotlin
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()
|
|
}
|
|
} |