KT-9601, KT-10103:

Chose maximally specific function in callable reference
 #KT-9601 Fixed
 #KT-10103 Fixed
This commit is contained in:
Dmitry Petrov
2015-11-24 19:23:15 +03:00
parent 67dd97b918
commit 9ccb1fd506
16 changed files with 203 additions and 30 deletions
@@ -0,0 +1,16 @@
// !DIAGNOSTICS: -UNUSED_PARAMETER
fun fun1() {}
fun fun1(x: Int) {}
val ref1 = ::<!OVERLOAD_RESOLUTION_AMBIGUITY!>fun1<!>
fun fun2(vararg x: Int) {}
fun fun2(x: Int) {}
val ref2 = ::<!OVERLOAD_RESOLUTION_AMBIGUITY!>fun2<!>
fun fun3(x0: Int, vararg xs: Int) {}
fun fun3(x0: String, vararg xs: String) {}
val ref3 = ::<!OVERLOAD_RESOLUTION_AMBIGUITY!>fun3<!>