From ad9429d1cae70baf9b561090bb33ab2941d2a3a5 Mon Sep 17 00:00:00 2001 From: nea Date: Mon, 21 Aug 2023 19:24:30 +0200 Subject: Varargs support --- test/src/TestLisp.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/src/TestLisp.kt') diff --git a/test/src/TestLisp.kt b/test/src/TestLisp.kt index 5f56d68..0e5d2d8 100644 --- a/test/src/TestLisp.kt +++ b/test/src/TestLisp.kt @@ -9,10 +9,10 @@ object T object TestBindings { @LispBinding("funny-method") - fun funnyMethod(arg: Int, test: String, boolean: Boolean, ast: LispAst): LispData { + fun funnyMethod(arg: Int, test: String, boolean: Boolean, vararg ast: LispAst): LispData { if (boolean) println("From java: $test") - println(ast.toSource()) + ast.forEach { println(it.toSource()) } return LispData.LispNumber(arg.toDouble()) } -- cgit