3a9ecf0bce
Change resolution to consider extensions to implicit receiver before members of another implicit receiver. Make synthesized member-like extensions resolve right after the members. #KT-10510 Fixed #KT-10219 Fixed
19 lines
308 B
Kotlin
Vendored
19 lines
308 B
Kotlin
Vendored
// !CHECK_TYPE
|
|
// !DIAGNOSTICS: -UNUSED_EXPRESSION -UNUSED_PARAMETER -UNUSED_VARIABLE
|
|
|
|
// FILE: A.java
|
|
public class A {
|
|
public static void foo() {}
|
|
}
|
|
|
|
// FILE: 1.kt
|
|
|
|
class C {
|
|
fun foo() = this
|
|
|
|
inner class B : A() {
|
|
fun test() {
|
|
foo() checkType { _<Unit>() }
|
|
}
|
|
}
|
|
} |