0ce6bd9999
In the expression "Runnable::run" we were resolving the left-hand side to the SAM constructor of Runnable. Now we detect this situation, ignore the result of such resolution, and continue resolving the LHS as a type
17 lines
186 B
Kotlin
Vendored
17 lines
186 B
Kotlin
Vendored
// FILE: Foo.kt
|
|
|
|
package test
|
|
|
|
class Foo {
|
|
fun bar() {}
|
|
}
|
|
|
|
// FILE: test.kt
|
|
|
|
import test.Foo
|
|
|
|
fun Foo(): String = ""
|
|
|
|
val f = Foo::bar
|
|
val g = Foo::<!UNRESOLVED_REFERENCE!>length<!>
|