5eb69e0ae4
* 'Replace safe access expression with 'if' expression' IDEA Kotlin plugin intention may failed #KT-20010 Fixed * #KT-20010 Fixed
10 lines
148 B
Plaintext
Vendored
10 lines
148 B
Plaintext
Vendored
class Foo {
|
|
var bar: Bar? = null
|
|
}
|
|
class Bar {
|
|
var baz = 1
|
|
}
|
|
fun test(foo: Foo?) {
|
|
val bar = foo?.bar
|
|
if (bar != null) bar.baz = 2
|
|
} |