KT-1781 Can't distinguish between two constructors

#KT-1781 Fixed

 Now, if foo() and foo(vararg bar) both match the call site, the first one is preferred
This commit is contained in:
Andrey Breslav
2012-04-16 15:56:19 +04:00
parent d549e9d3a5
commit 0f98c281ab
7 changed files with 75 additions and 3 deletions
@@ -0,0 +1,6 @@
fun foo(vararg <!UNUSED_PARAMETER!>t<!> : String) = ""
fun foo(vararg <!UNUSED_PARAMETER!>t<!> : Int) = ""
fun test() {
<!OVERLOAD_RESOLUTION_AMBIGUITY!>foo()<!>
}