[FIR] Implement deprecation warning for synthetic without java base getter
Also implement new resolution behavior under language feature ^KT-63076 Fixed ^KT-64358
This commit is contained in:
committed by
Space Team
parent
d5b0a5b220
commit
fa33c5dc79
+19
@@ -0,0 +1,19 @@
|
||||
// ISSUE: KT-59550
|
||||
// FILE: Base.kt
|
||||
abstract class Base(private val foo: String) {
|
||||
fun getFoo(): String = foo
|
||||
}
|
||||
|
||||
// FILE: Intermediate.java
|
||||
public class Intermediate extends Base {
|
||||
public Intermediate(String foo) {
|
||||
super(foo);
|
||||
}
|
||||
}
|
||||
|
||||
// FILE: main.kt
|
||||
class Final(val i: Intermediate) : Intermediate(i.<!SYNTHETIC_PROPERTY_WITHOUT_JAVA_ORIGIN!>foo<!>)
|
||||
|
||||
fun test(x: Final) {
|
||||
x.<!SYNTHETIC_PROPERTY_WITHOUT_JAVA_ORIGIN!>foo<!>
|
||||
}
|
||||
Reference in New Issue
Block a user