diff options
Diffstat (limited to 'test/src/model/ClassTest.kt')
-rw-r--r-- | test/src/model/ClassTest.kt | 16 |
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()) } } } |