KT-7231 Support Parameter Info inside this or super constructor calls
#KT-7231 Fixed
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
class B private constructor(p: Int) {
|
||||
constructor() : this(<caret>)
|
||||
protected constructor(s: String) : this()
|
||||
}
|
||||
|
||||
/*
|
||||
Text: (<highlight>p: Int</highlight>), Disabled: false, Strikeout: false, Green: false
|
||||
Text: (<highlight>s: String</highlight>), Disabled: false, Strikeout: false, Green: false
|
||||
*/
|
||||
@@ -0,0 +1,13 @@
|
||||
open class A(x: Int) {
|
||||
protected constructor() : this(1) {}
|
||||
private constructor(p: String) : this(2) {}
|
||||
}
|
||||
|
||||
class B : A {
|
||||
constructor() : super(<caret>)
|
||||
}
|
||||
|
||||
/*
|
||||
Text: (<highlight>x: Int</highlight>), Disabled: false, Strikeout: false, Green: false
|
||||
Text: (<no parameters>), Disabled: false, Strikeout: false, Green: true
|
||||
*/
|
||||
Reference in New Issue
Block a user