693c753988
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
17 lines
234 B
Kotlin
Vendored
17 lines
234 B
Kotlin
Vendored
// !DIAGNOSTICS: -UNUSED_EXPRESSION
|
|
// FILE: simpleName.kt
|
|
|
|
package foo
|
|
|
|
fun test() {
|
|
<!UNRESOLVED_REFERENCE!>foo<!>::test
|
|
}
|
|
|
|
// FILE: qualifiedName.kt
|
|
|
|
package foo.bar
|
|
|
|
fun test() {
|
|
foo.<!UNRESOLVED_REFERENCE!>bar<!>::test
|
|
}
|