mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
KTIJ-28409 K2 IDE: port UsePropertyAccessSyntaxIntention Merge-request: IJ-MR-125578 Merged-by: Victoria Petrakovich <Victoria.Petrakovich@jetbrains.com> GitOrigin-RevId: bca92cabd37d3d9f926cef4afba58962f586a89e
10 lines
231 B
Kotlin
10 lines
231 B
Kotlin
// FIX: Use property access syntax
|
|
// IGNORE_K1
|
|
/* For K1, the conversion returns
|
|
fun a(foo: Foo?): Unit? {
|
|
return foo?.setFoo(1)
|
|
}
|
|
And such a setter after return cannot be replaced.
|
|
*/
|
|
|
|
fun a(foo: Foo?) = foo?.<caret>setFoo(1) |