Call Hierarchy: Support secondary constructors
This commit is contained in:
+4
-1
@@ -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() {
|
||||
|
||||
}
|
||||
+8
@@ -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("");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user