diff --git a/nac3core/src/codegen/expr.rs b/nac3core/src/codegen/expr.rs
index 3ca72835..98972a81 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