From 6d23430e9ebc6866d9c41523a1364cc9616e1222 Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Tue, 13 Jan 2015 17:15:52 +0100 Subject: don't show methods as open if their containing class is final --- test/src/model/ClassTest.kt | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'test/src') diff --git a/test/src/model/ClassTest.kt b/test/src/model/ClassTest.kt index f21c5c57..61bc68bd 100644 --- a/test/src/model/ClassTest.kt +++ b/test/src/model/ClassTest.kt @@ -222,4 +222,14 @@ public class ClassTest { } } } + + Test fun notOpenClass() { + verifyModel("test/data/classes/notOpenClass.kt") { model -> + with(model.members.single().members.first { it.name == "D"}.members.first { it.name == "f" }) { + val modifiers = details(DocumentationNode.Kind.Modifier) + assertEquals(2, modifiers.size()) + assertEquals("final", modifiers[1].name) + } + } + } } -- cgit