diff --git a/nac3core/src/codegen/expr.rs b/nac3core/src/codegen/expr.rs
index 3ca728355..98972a817 100644
--- a/nac3core/src/codegen/expr.rs
+++ b/nac3core/src/codegen/expr.rs
@@ -10,7 +10,10 @@ use crate::{
},
symbol_resolver::{SymbolValue, ValueEnum},
toplevel::{DefinitionId, TopLevelDef},
- typecheck::typedef::{FunSignature, FuncArg, Type, TypeEnum, Unifier},
+ typecheck::{
+ typedef::{FunSignature, FuncArg, Type, TypeEnum, Unifier},
+ magic_methods::{binop_name, binop_assign_name},
+ },
};
use inkwell::{
AddressSpace,
@@ -927,21 +930,29 @@ pub fn gen_binop_expr<'ctx, 'a, G: CodeGenerator>(
left: &Expr