Call Hierarchy: Support secondary constructors

This commit is contained in:
Alexey Sedunov
2015-03-19 19:01:49 +03:00
parent fe553edfb4
commit 312a1db273
8 changed files with 71 additions and 12 deletions
@@ -1,7 +1,10 @@
<node text="KA.KA() ()" base="true">
<node text="KClient ()"/>
<node text="KClient.bar() ()"/>
<node text="KClient.getBar() ()"/>
<node text="KClient ()"/>
<node text="JA.JA() ()"/>
<node text="JA.newKA() ()"/>
<node text="JA ()"/>
<node text="JA.JA(Int) ()"/>
<node text="JA2 ()"/>
</node>
@@ -1,7 +1,19 @@
open class JA() {
open class JA: KA {
constructor() {
}
constructor(a: Int): super() {
}
public var name: String = KA().getName()
public open fun newKA(): KA? {
return KA()
}
}
class JA2: KA() {
}
@@ -0,0 +1,8 @@
<node text="B.B(String) ()" base="true">
<node text="JJ.JJ() ()"/>
<node text="JJ.test() ()"/>
<node text="B.B() ()"/>
<node text="A.A(Int) ()"/>
<node text="C ()"/>
<node text="test() ()"/>
</node>
@@ -0,0 +1,23 @@
open class B {
constructor(): this("") {
}
<caret>constructor(s: String) {
}
}
open class A : B {
constructor(a: Int) : super("") {
}
}
class C: B("") {
}
fun test() {
B("")
}
@@ -0,0 +1,9 @@
class JJ extends B {
JJ() {
super("");
}
static void test() {
new B("");
}
}