Files
kotlin-fork/compiler/testData/diagnostics/tests/callableReference/bound/functionCallWithoutArguments.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

2 lines
66 B
Kotlin
Vendored

fun test() = ("").<!FUNCTION_CALL_EXPECTED!>hashCode<!>::hashCode