diff options
author | Andrea Falcone <1848683+asfalcone@users.noreply.github.com> | 2019-12-13 16:33:28 -0500 |
---|---|---|
committer | Kamil Doległo <kamilok1965@users.noreply.github.com> | 2019-12-18 12:47:30 +0100 |
commit | 41ac08a63a3813b1d6b2ede0c50e8269c9aeb3aa (patch) | |
tree | 92b9d3f1d0120a5e1451634d0599a8ef3bda273e /core/src/test/kotlin | |
parent | 59c3f5fb48ce65e85d72deddebf57b9775317b79 (diff) | |
download | dokka-41ac08a63a3813b1d6b2ede0c50e8269c9aeb3aa.tar.gz dokka-41ac08a63a3813b1d6b2ede0c50e8269c9aeb3aa.tar.bz2 dokka-41ac08a63a3813b1d6b2ede0c50e8269c9aeb3aa.zip |
Implement display of Java default constructors
PsiClass does not include methods which are not present in the text
of the code. So when there are no constructors in a java class this
represents a class that only has a default constructor. The fix is
to create one for documentation.
Diffstat (limited to 'core/src/test/kotlin')
-rw-r--r-- | core/src/test/kotlin/model/KotlinAsJavaTest.kt | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/core/src/test/kotlin/model/KotlinAsJavaTest.kt b/core/src/test/kotlin/model/KotlinAsJavaTest.kt index 8249dd0f..c29776be 100644 --- a/core/src/test/kotlin/model/KotlinAsJavaTest.kt +++ b/core/src/test/kotlin/model/KotlinAsJavaTest.kt @@ -16,9 +16,8 @@ class KotlinAsJavaTest { val facadeClass = pkg.members.single { it.name == "FunctionKt" } assertEquals(NodeKind.Class, facadeClass.kind) - val fn = facadeClass.members.single() + val fn = facadeClass.members.single { it.kind == NodeKind.Function} assertEquals("fn", fn.name) - assertEquals(NodeKind.Function, fn.kind) } } |