Fixed resolve for callable references

functions and properties have the same priority
This commit is contained in:
Svetlana Isakova
2014-12-22 14:05:17 +03:00
parent f0bb6c58fc
commit 62c8a6f79a
6 changed files with 83 additions and 57 deletions
@@ -0,0 +1,13 @@
// !CHECK_TYPE
import kotlin.reflect.KMemberProperty
class C {
val baz: Int = 12
}
fun Int.baz() {}
fun test() {
C::baz checkType { it : _<KMemberProperty<C, Int>>}
}
@@ -0,0 +1,12 @@
package
internal fun test(): kotlin.Unit
internal fun kotlin.Int.baz(): kotlin.Unit
internal final class C {
public constructor C()
internal final val baz: kotlin.Int = 12
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
}