Added 'LowPriorityInOverloadResolution' annotation
This commit is contained in:
+7
@@ -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"
|
||||
Reference in New Issue
Block a user