5ab05e6e47
When there's an explicit one ^KT-39028 Fixed
22 lines
329 B
Kotlin
Vendored
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>() }
|
|
}
|