Skip to content

Commit

Permalink
fix test broken by addition of List.new
Browse files Browse the repository at this point in the history
  • Loading branch information
Book-reader committed Jan 20, 2025
1 parent 72ec42b commit 62c5ff4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_suite/macros/vasplat_function_call.c3
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import std;

def IList = List(<int>);
fn IList IList.new() @operator(construct)
fn IList IList.foo() @operator(construct)
{
IList l;
l.new_init($vasplat); // #error: can only be used inside
Expand All @@ -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]);
Expand Down

0 comments on commit 62c5ff4

Please sign in to comment.