Show documentation for a class if the constructor has no docs

#KT-17926 Fixed
This commit is contained in:
Norbert Nogacki
2020-06-25 14:41:28 +02:00
committed by Vladimir Dolzhenko
parent 699829ccb3
commit 990903e4e2
3 changed files with 44 additions and 11 deletions
@@ -0,0 +1,17 @@
/**
Documentation is here.
*/
class Foo {
private var x: Int = 0
constructor(x: Int) {
this.x = x
} //secondary constructor without documentation
}
fun test() {
val f = Foo<caret>(10)
}
//INFO: <div class='definition'><pre><a href="psi_element://Foo"><code>Foo</code></a><br>public constructor <b>Foo</b>(
//INFO: x: Int
//INFO: )</pre></div><div class='content'><p>Documentation is here.</p></div><table class='sections'></table>