diff options
author | Dmitry Jemerov <yole@jetbrains.com> | 2015-02-20 19:31:48 +0100 |
---|---|---|
committer | Dmitry Jemerov <yole@jetbrains.com> | 2015-02-20 19:31:48 +0100 |
commit | b1296e64749b9d7250fe0284f0322ea7713c879a (patch) | |
tree | 0f10d7231332c8132819fdb352692a6e4b0c58ea /test/src | |
parent | ce4b3b663f1f0bb40f87f288e210e01ffe93e52a (diff) | |
download | dokka-b1296e64749b9d7250fe0284f0322ea7713c879a.tar.gz dokka-b1296e64749b9d7250fe0284f0322ea7713c879a.tar.bz2 dokka-b1296e64749b9d7250fe0284f0322ea7713c879a.zip |
override links for properties
Diffstat (limited to 'test/src')
-rw-r--r-- | test/src/model/PropertyTest.kt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/src/model/PropertyTest.kt b/test/src/model/PropertyTest.kt index d6de84bb..1a9ef995 100644 --- a/test/src/model/PropertyTest.kt +++ b/test/src/model/PropertyTest.kt @@ -126,4 +126,15 @@ public class PropertyTest { } } } + + Test fun propertyOverride() { + verifyModel("test/data/properties/propertyOverride.kt") { model -> + with(model.members.single().members.single { it.name == "Bar" }.members.single { it.name == "xyzzy"}) { + assertEquals("xyzzy", name) + val override = references(DocumentationReference.Kind.Override).single().to + assertEquals("xyzzy", override.name) + assertEquals("Foo", override.owner!!.name) + } + } + } } |