KT-7231 Support Parameter Info inside this or super constructor calls

#KT-7231 Fixed
This commit is contained in:
Valentin Kipyatkov
2015-10-07 14:42:46 +03:00
parent 4256fb9c6e
commit 6ed7ac5285
5 changed files with 52 additions and 1 deletions
@@ -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
*/