edaca59d83
In theory, forking persistent flows should be cheap because of object reuse, so the proposal here is to start from scratch and prove redundancy of forks on a case-by-case basis. Something something better safe than sorry. ^KT-28333 tag fixed-in-k2 ^KT-28489 tag fixed-in-k2
12 lines
218 B
Kotlin
Vendored
12 lines
218 B
Kotlin
Vendored
class Foo(val bar: String?)
|
|
|
|
fun test(foo: Foo?) {
|
|
foo!!.bar.let {
|
|
// Correct
|
|
foo.bar?.length
|
|
// Unnecessary
|
|
foo<!UNNECESSARY_SAFE_CALL!>?.<!>bar?.length
|
|
}
|
|
foo.bar?.length
|
|
}
|