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:
Vendored
-21
@@ -1,21 +0,0 @@
|
||||
// !LANGUAGE: -ReferencesToSyntheticJavaProperties
|
||||
|
||||
// FILE: Customer.java
|
||||
public class Customer {
|
||||
private String name;
|
||||
|
||||
public Customer(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
}
|
||||
|
||||
// FILE: test.kt
|
||||
val customerName = Customer::name
|
||||
+1
@@ -1,4 +1,5 @@
|
||||
// !LANGUAGE: -ReferencesToSyntheticJavaProperties
|
||||
// FIR_IDENTICAL
|
||||
|
||||
// FILE: Customer.java
|
||||
public class Customer {
|
||||
|
||||
Reference in New Issue
Block a user