Files
kotlin-fork/compiler/testData/diagnostics/tests/callableReference/function/classMemberVsConstructorLikeFunction.kt
T
Alexander Udalov 0ce6bd9999 Ignore resolution to function without arguments on LHS of '::'
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
2016-06-07 12:42:19 +03:00

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<!>