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
This commit is contained in:
Alexander Udalov
2016-05-27 19:34:23 +03:00
parent 04c190231a
commit 0ce6bd9999
8 changed files with 124 additions and 1 deletions
@@ -0,0 +1,3 @@
package
public fun test(): kotlin.reflect.KFunction0<kotlin.Int>