aboutsummaryrefslogtreecommitdiff
path: root/test/src
diff options
context:
space:
mode:
Diffstat (limited to 'test/src')
-rw-r--r--test/src/model/PropertyTest.kt11
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)
+ }
+ }
+ }
}