Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolve/callResolution/syntheticPropertiesWrongImplicitReceiver.kt
T
Denis Zharkov 5ab05e6e47 FIR: Fix incorrect resolution to synthetic property by implicit receiver
When there's an explicit one

^KT-39028 Fixed
2020-06-11 11:31:39 +03:00

22 lines
329 B
Kotlin
Vendored

// !CHECK_TYPE
// FILE: JavaClass.java
public class JavaClass {
public String getFoo() {
return "";
}
}
// FILE: main.kt
interface A
val A.foo: Int get() = 1
fun bar(a: A) {
a.foo checkType { _<Int>() } // OK, resolved to extension property
}
fun JavaClass.bar(a: A) {
a.foo checkType { _<Int>() }
}