is_constant should be #if

This commit is contained in:
Judah Caruso 2025-05-11 02:36:52 -06:00
parent c42131d90b
commit bcabcb1b87

View file

@ -42,7 +42,7 @@ with :: (old: $T, $new: Code, location := #caller_location) -> T
} }
receiver := "old"; receiver := "old";
if is_constant(old) { #if is_constant(old) {
receiver = "copy"; receiver = "copy";
basic.print_to_builder(*b, "% := old;\n", receiver); basic.print_to_builder(*b, "% := old;\n", receiver);
} }