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

7 lines
166 B
Plaintext

// COMPILER_ARGUMENTS: -XXLanguage:+ReferencesToSyntheticJavaProperties
fun main() {
suppressUnused(Foo::foo)
}
fun suppressUnused(foo: (Foo) -> Int): Any = foo