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
13 lines
284 B
Kotlin
Vendored
13 lines
284 B
Kotlin
Vendored
// !CHECK_TYPE
|
|
// !DIAGNOSTICS: -UNUSED_EXPRESSION -UNUSED_PARAMETER -UNUSED_VARIABLE
|
|
|
|
class ClassA {
|
|
fun method1() = this
|
|
|
|
fun String.method2() {
|
|
method1() checkType { _<String>() }
|
|
this.method1() checkType { _<String>() }
|
|
}
|
|
}
|
|
|
|
fun String.method1() = this |