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
10 lines
249 B
Kotlin
Vendored
10 lines
249 B
Kotlin
Vendored
package test
|
|
|
|
class Foo {
|
|
fun <T> bar(x: Int) = x
|
|
}
|
|
|
|
fun test() {
|
|
Foo::<!TYPE_INFERENCE_NO_INFORMATION_FOR_PARAMETER!>bar<!> <!SYNTAX!>< <!DEBUG_INFO_MISSING_UNRESOLVED!>Int<!> ><!> <!SYNTAX!>(2 <!DEBUG_INFO_MISSING_UNRESOLVED!>+<!> 2)<!>
|
|
}
|