Shift ReferencesToSyntheticJavaProperties feature release from 1.9 to 2.1

Other related tests:
- testGenericJavaProperty
- testFunInterfaceConstructorReference

Meta issue: KT-8575
Review: https://jetbrains.team/p/kt/reviews/9595

UnsupportedSyntheticCallableReferenceChecker only existed for K1,
because we wanted to release the feature for 1.9 and the feature should
have been working for K2 unconditionally. But since, we're postponing
the release until 2.1, we also need to port the checker from K1 to K2
This commit is contained in:
Nikita Bobko
2023-04-13 14:36:39 +02:00
committed by Space Team
parent 521a272acb
commit 5a96754aec
13 changed files with 63 additions and 44 deletions
@@ -1,17 +0,0 @@
// !LANGUAGE: -ReferencesToSyntheticJavaProperties
// !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_EXPRESSION
// FILE: KotlinFile.kt
fun call(c: Any) {}
fun test() {
JavaClass::foo
call(JavaClass::foo)
}
// FILE: JavaClass.java
public class JavaClass {
public String getFoo() {}
}
@@ -1,5 +1,6 @@
// !LANGUAGE: -ReferencesToSyntheticJavaProperties
// !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_EXPRESSION
// FIR_IDENTICAL
// FILE: KotlinFile.kt