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,13 @@
|
||||
// FILE: kotlin.kt
|
||||
fun foo() {
|
||||
JavaClass()
|
||||
JavaClass("")
|
||||
}
|
||||
|
||||
// FILE: JavaClass.java
|
||||
|
||||
public class JavaClass {
|
||||
public JavaClass() { }
|
||||
|
||||
public JavaClass(String... ss) { }
|
||||
}
|
||||
Reference in New Issue
Block a user