From 4a458963ff15d113d7833cebba55065a910b135c Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Mon, 16 Feb 2015 12:32:41 +0100 Subject: handle vararg types --- test/src/model/JavaTest.kt | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'test/src/model') diff --git a/test/src/model/JavaTest.kt b/test/src/model/JavaTest.kt index fe4fd322..e339f939 100644 --- a/test/src/model/JavaTest.kt +++ b/test/src/model/JavaTest.kt @@ -107,4 +107,14 @@ public class JavaTest { assertEquals("D", innerClass.name) } } + + Test fun varargs() { + verifyPackageMember("test/data/java/varargs.java") { cls -> + val fn = cls.members(DocumentationNode.Kind.Function).single() + val param = fn.detail(DocumentationNode.Kind.Parameter) + assertEquals("vararg", param.annotations.first().name) + val psiType = param.detail(DocumentationNode.Kind.Type) + assertEquals("String", psiType.name) + } + } } -- cgit