Resolving operator overloads functions

This commit is contained in:
Krzosa Karol
2022-09-29 14:27:37 +02:00
parent 7ce3871a9e
commit 27ed000800
3 changed files with 43 additions and 3 deletions

View File

@@ -849,7 +849,6 @@ parse_decl(B32 is_global){
if(!expr->scope){
compiler_error(tname, "Operator overload doesn't have body");
}
if(!is_valid_operator_overload(pctx, tname->intern_val)){
compiler_error(tname, "This operator cannot be overloaded");
}