Files
Nikita Bobko 615a2fbbc1 Make UsePropertyAccessSyntax to report references to Java getters
^KTIJ-23892 Fixed
Review: https://jetbrains.team/p/ij/reviews/100206

I can afford to use `FrontendInternals` API because this API is already
used in this intention

GitOrigin-RevId: 5a24ea37951f679a01bc134a88b69313ca868b3a
2023-01-05 10:05:34 +00:00

8 lines
200 B
Kotlin

// COMPILER_ARGUMENTS: -XXLanguage:-ReferencesToSyntheticJavaProperties
// IS_APPLICABLE: false
fun main() {
suppressUnused(Foo::<caret>getFoo)
}
fun suppressUnused(foo: (Foo) -> Int): Any = foo