Change Signature: Skip secondary constructor calls when looking for primary constructor usages
#KT-7445 Fixed
This commit is contained in:
+6
@@ -0,0 +1,6 @@
|
||||
class Test {
|
||||
void test() {
|
||||
new C("");
|
||||
new C("2", "1");
|
||||
}
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
class C(p2: String, p1: String) {
|
||||
public constructor(p: String) : this(p, p) {}
|
||||
}
|
||||
|
||||
fun foo() {
|
||||
C("")
|
||||
C("2", "1")
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
class Test {
|
||||
void test() {
|
||||
new C("");
|
||||
new C("1", "2");
|
||||
}
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
class <caret>C(p1: String, p2: String) {
|
||||
public constructor(p: String) : this(p, p) {}
|
||||
}
|
||||
|
||||
fun foo() {
|
||||
C("")
|
||||
C("1", "2")
|
||||
}
|
||||
Reference in New Issue
Block a user