22 lines
471 B
Kotlin
Vendored
22 lines
471 B
Kotlin
Vendored
// !forceNotNullTypes: false
|
|
// !specifyLocalVariableTypeByDefault: true
|
|
package test
|
|
|
|
internal class Foo {
|
|
fun execute() {
|
|
}
|
|
}
|
|
|
|
internal class Bar {
|
|
var fooNotNull = Foo()
|
|
var fooNullable: Foo? = null
|
|
}
|
|
|
|
internal class Test {
|
|
fun test(barNotNull: Bar, barNullable: Bar?) {
|
|
barNotNull.fooNotNull.execute()
|
|
barNotNull.fooNullable!!.execute()
|
|
barNullable!!.fooNotNull.execute()
|
|
barNullable.fooNullable!!.execute()
|
|
}
|
|
} |