5a96754aec
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
19 lines
332 B
Kotlin
Vendored
19 lines
332 B
Kotlin
Vendored
// ISSUE: KT-56243
|
|
// !LANGUAGE: +ReferencesToSyntheticJavaProperties
|
|
|
|
// FILE: JavaInv.java
|
|
public class JavaInv<T> {
|
|
public String getStringVal() { return "OK"; }
|
|
}
|
|
|
|
// FILE: main.kt
|
|
|
|
class KotlinInv<T> {
|
|
val stringVal: String = ""
|
|
}
|
|
|
|
fun test() {
|
|
JavaInv<out Number>::stringVal
|
|
KotlinInv<out Number>::stringVal
|
|
}
|