diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/data/java/javaLangObject.java | 5 | ||||
-rw-r--r-- | test/src/model/JavaTest.kt | 7 |
2 files changed, 12 insertions, 0 deletions
diff --git a/test/data/java/javaLangObject.java b/test/data/java/javaLangObject.java new file mode 100644 index 00000000..8f16629c --- /dev/null +++ b/test/data/java/javaLangObject.java @@ -0,0 +1,5 @@ +package test; + +class Test { + public Object fn() { return null; } +} diff --git a/test/src/model/JavaTest.kt b/test/src/model/JavaTest.kt index ff04c90c..cdb0ba44 100644 --- a/test/src/model/JavaTest.kt +++ b/test/src/model/JavaTest.kt @@ -160,4 +160,11 @@ public class JavaTest { } } } + + Test fun javaLangObject() { + verifyPackageMember("test/data/java/javaLangObject.java") { cls -> + val fn = cls.members(DocumentationNode.Kind.Function).single() + assertEquals("Any", fn.detail(DocumentationNode.Kind.Type).name) + } + } } |