Files
Alexey Belkov d0626ed659 [kotlin] "Use Property Access Syntax" improvements
* Report for unqualified call of setter with non-unit return type
  to support the "builder" use case with `apply` function

* Don't report for common getter-like prefixes "getAnd" and "getIf"

* Add a test with is-getter with nullable boolean return type

^KTIJ-23652
^KTIJ-17731
^KTIJ-748

GitOrigin-RevId: 3eed485aca31a946eef8f874140491e0940cd6da
2022-11-16 15:37:34 +00:00

5 lines
86 B
Kotlin

// IS_APPLICABLE: false
fun foo(foo: Foo) {
val foo2 = foo.getOrCreate()<caret>
}