Skip to content

Commit 7575d8a

Browse files
create failing test case
1 parent 245e5f3 commit 7575d8a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/unit/ast-macros.lsts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,12 @@ typed macro ast-macros-test-add(x: I64, y: lazy): lazy = (
1111
assert( ast-macros-test-add(1_u64, 2_u64) == 3_u64 );
1212
assert( ast-macros-test-add(2_i64, 3_i64) == 5_i64 );
1313

14+
(
15+
let x = mk-vector(type(U64)).push(1).push(2);
16+
$"macro::set"($"macro::lhs-index"(x,0), 3);
17+
$"macro::set"($"macro::lhs-index"(x,1), 4);
18+
print(x);
19+
);
20+
1421
#$"macro::for"(x, [1, 2], print(x));
1522
#$"macro::for"(x, mk-vector(type(U64)).push(3).push(4), print(x));

0 commit comments

Comments
 (0)