diff --git a/compiler/gen/src/llvm/build.rs b/compiler/gen/src/llvm/build.rs index a10c2df0f3..1eccf1e5da 100644 --- a/compiler/gen/src/llvm/build.rs +++ b/compiler/gen/src/llvm/build.rs @@ -1088,6 +1088,7 @@ fn call_with_args<'a, 'ctx, 'env>( } } Symbol::LIST_SET => { + // List.set : List elem, Int, elem -> List elem let builder = env.builder; debug_assert!(args.len() == 3); diff --git a/compiler/gen/tests/test_gen.rs b/compiler/gen/tests/test_gen.rs index 4bc6b294bd..135cdefcb1 100644 --- a/compiler/gen/tests/test_gen.rs +++ b/compiler/gen/tests/test_gen.rs @@ -574,7 +574,7 @@ mod test_gen { #[test] fn set_shared_int_list() { - assert_evals_to!( + assert_llvm_evals_to!( indoc!( r#" shared = [ 2, 4 ] @@ -585,8 +585,9 @@ mod test_gen { { x, y: List.getUnsafe shared 1 } "# ), - (4, 77), - (i64, i64) + (77, 4), + (i64, i64), + |x| x ); }