mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-16 15:53:55 +00:00
Despite the fact that the LHS of a double colon expression is now KtExpression instead of KtUserType, we must still consider it a type for callable references to work. Extract and reuse relevant parts of QualifiedExpressionResolver and TypeResolver to support this behavior
25 lines
215 B
Kotlin
Vendored
25 lines
215 B
Kotlin
Vendored
// MODULE: m1
|
|
// FILE: 1.kt
|
|
|
|
package a
|
|
|
|
class b {
|
|
class c
|
|
}
|
|
|
|
// MODULE: m2
|
|
// FILE: 2.kt
|
|
|
|
package a.b
|
|
|
|
class c {
|
|
fun foo() {}
|
|
}
|
|
|
|
// MODULE: m3(m1, m2)
|
|
// FILE: test.kt
|
|
|
|
package test
|
|
|
|
fun test() = a.b.c::foo
|