456ba79793
Previous resolution sequence (static scope, nested classes scope, receiver) and a check against type parameters only made sense when there's a type, not an expression, on the LHS of a callable reference. Also TransientReceiver is incorrect in such case because private-to-this visibility check only works for ExpressionReceiver values
15 lines
210 B
Kotlin
Vendored
15 lines
210 B
Kotlin
Vendored
// FILE: A.java
|
|
|
|
public class A {
|
|
public static void test() {}
|
|
}
|
|
|
|
// FILE: test.kt
|
|
|
|
enum class E { EN }
|
|
|
|
fun test() {
|
|
A()::<!UNRESOLVED_REFERENCE!>test<!>
|
|
E.EN::<!UNRESOLVED_REFERENCE!>valueOf<!>
|
|
}
|