From 62c5ff4877d246a893f861b1470d3268bfc6378f Mon Sep 17 00:00:00 2001 From: Book-reader Date: Mon, 20 Jan 2025 20:51:51 +1300 Subject: [PATCH] fix test broken by addition of `List.new` --- test/test_suite/macros/vasplat_function_call.c3 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_suite/macros/vasplat_function_call.c3 b/test/test_suite/macros/vasplat_function_call.c3 index 649ce9c7c..f2d81258e 100644 --- a/test/test_suite/macros/vasplat_function_call.c3 +++ b/test/test_suite/macros/vasplat_function_call.c3 @@ -1,7 +1,7 @@ import std; def IList = List(); -fn IList IList.new() @operator(construct) +fn IList IList.foo() @operator(construct) { IList l; l.new_init($vasplat); // #error: can only be used inside @@ -11,7 +11,7 @@ fn IList IList.new() @operator(construct) fn void main() { - IList a = IList.new(123, 123, 123, 123, 123, 123, 123, 134); + IList a = IList.foo(123, 123, 123, 123, 123, 123, 123, 134); a.push(567); io::printfn("%s", a[0]);