Change Signature: Skip secondary constructor calls when looking for primary constructor usages

#KT-7445 Fixed
This commit is contained in:
Alexey Sedunov
2015-04-14 17:54:29 +03:00
parent 02b0c4c7eb
commit aa0930ea60
6 changed files with 38 additions and 1 deletions
@@ -0,0 +1,6 @@
class Test {
void test() {
new C("");
new C("2", "1");
}
}
@@ -0,0 +1,8 @@
class C(p2: String, p1: String) {
public constructor(p: String) : this(p, p) {}
}
fun foo() {
C("")
C("2", "1")
}
@@ -0,0 +1,6 @@
class Test {
void test() {
new C("");
new C("1", "2");
}
}
@@ -0,0 +1,8 @@
class <caret>C(p1: String, p2: String) {
public constructor(p: String) : this(p, p) {}
}
fun foo() {
C("")
C("1", "2")
}