[fine] Starting on lists, god help me

This commit is contained in:
John Doty 2024-01-17 15:58:48 -08:00
parent 106f2eb30f
commit 9ee8d39963
5 changed files with 190 additions and 35 deletions

View file

@ -425,7 +425,7 @@ fn compile_binary_expression(c: &mut Compiler, t: TreeRef, tr: &Tree) -> CR {
compile_expression(c, tr.nth_tree(2)?);
if arg_type.compatible_with(&Type::Nothing) {
if c.semantics.type_compat(&arg_type, &Type::Nothing) {
c.push(Instruction::Discard);
c.push(Instruction::Discard);
c.push(Instruction::PushTrue);