Added 'LowPriorityInOverloadResolution' annotation

This commit is contained in:
Svetlana Isakova
2015-10-16 17:51:27 +03:00
parent 1cfb7d8f57
commit ded62686a0
5 changed files with 33 additions and 2 deletions
@@ -0,0 +1,7 @@
@Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
@kotlin.internal.LowPriorityInOverloadResolution
fun foo(i: Int) = 1
fun foo(a: Any) = 2
fun box() = if (foo(1) == 2) "OK" else "fail"