aboutsummaryrefslogtreecommitdiff
path: root/test/src/model
diff options
context:
space:
mode:
Diffstat (limited to 'test/src/model')
-rw-r--r--test/src/model/JavaTest.kt7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/src/model/JavaTest.kt b/test/src/model/JavaTest.kt
index 15efa90b..2e055d65 100644
--- a/test/src/model/JavaTest.kt
+++ b/test/src/model/JavaTest.kt
@@ -133,4 +133,11 @@ public class JavaTest {
assertFalse("var" in s.details(DocumentationNode.Kind.Modifier).map { it.name })
}
}
+
+ Test fun staticMethod() {
+ verifyPackageMember("test/data/java/staticMethod.java") { cls ->
+ val m = cls.members(DocumentationNode.Kind.ClassObjectFunction).single { it.name == "foo" }
+ assertFalse("static" in m.details(DocumentationNode.Kind.Modifier).map { it.name })
+ }
+ }
}