8314812ef9
Meta issue: KT-8575 ^KT-58061 Fixed Review: https://jetbrains.team/p/kt/reviews/9677 This commit fixes an inconsistency between FirUnsupportedSyntheticCallableReferenceChecker and UnsupportedSyntheticCallableReferenceChecker In K1 such properties were not considered synthetic and are called JavaPropertyDescriptor. That's why we need to do an additional check in K2 checker, while in K1 we didn't need to do it Also see the previous commit for more related tests that already was green without this fix but are related to KT-58061 problem
11 lines
228 B
Kotlin
Vendored
11 lines
228 B
Kotlin
Vendored
// !LANGUAGE: -ReferencesToSyntheticJavaProperties
|
|
// FIR_IDENTICAL
|
|
|
|
// FILE: AnnInterface.java
|
|
public @interface AnnInterface {
|
|
public String javaMethod() default "";
|
|
}
|
|
|
|
// FILE: Main.kt
|
|
val prop = AnnInterface::javaMethod
|