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:
@@ -0,0 +1,6 @@
|
||||
fun foo(vararg <!UNUSED_PARAMETER!>t<!> : String) = ""
|
||||
fun foo(vararg <!UNUSED_PARAMETER!>t<!> : Int) = ""
|
||||
|
||||
fun test() {
|
||||
<!OVERLOAD_RESOLUTION_AMBIGUITY!>foo()<!>
|
||||
}
|
||||
Reference in New Issue
Block a user