aboutsummaryrefslogtreecommitdiff
path: root/test/src/model/ClassTest.kt
diff options
context:
space:
mode:
authorDmitry Jemerov <yole@jetbrains.com>2015-01-14 13:30:43 +0100
committerDmitry Jemerov <yole@jetbrains.com>2015-01-14 13:30:43 +0100
commit0dd5ea3c1492b15bd386ec5c2c8d6e467a8f72a9 (patch)
tree0804f2730bd7da28cfb063f1b00fb4cc1773c4f9 /test/src/model/ClassTest.kt
parentcd21e1fea43c0b7fa8013e3db7f49fe2b600b7f8 (diff)
downloaddokka-0dd5ea3c1492b15bd386ec5c2c8d6e467a8f72a9.tar.gz
dokka-0dd5ea3c1492b15bd386ec5c2c8d6e467a8f72a9.tar.bz2
dokka-0dd5ea3c1492b15bd386ec5c2c8d6e467a8f72a9.zip
link overriding functions to the corresponding base class functions
Diffstat (limited to 'test/src/model/ClassTest.kt')
-rw-r--r--test/src/model/ClassTest.kt16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/src/model/ClassTest.kt b/test/src/model/ClassTest.kt
index 61bc68bd..5b9e1b1a 100644
--- a/test/src/model/ClassTest.kt
+++ b/test/src/model/ClassTest.kt
@@ -229,6 +229,22 @@ public class ClassTest {
val modifiers = details(DocumentationNode.Kind.Modifier)
assertEquals(2, modifiers.size())
assertEquals("final", modifiers[1].name)
+
+ val overrideReferences = references(DocumentationReference.Kind.Override)
+ assertEquals(1, overrideReferences.size())
+ }
+ }
+ }
+
+ Test fun indirectOverride() {
+ verifyModel("test/data/classes/indirectOverride.kt") { model ->
+ with(model.members.single().members.first { it.name == "E"}.members.first { it.name == "foo" }) {
+ val modifiers = details(DocumentationNode.Kind.Modifier)
+ assertEquals(2, modifiers.size())
+ assertEquals("final", modifiers[1].name)
+
+ val overrideReferences = references(DocumentationReference.Kind.Override)
+ assertEquals(1, overrideReferences.size())
}
}
}