Fix procedure overloading distinguishing

This commit is contained in:
Ginger Bill
2017-05-28 18:51:42 +01:00
parent f4924e39d4
commit 98dbbf11f3
2 changed files with 8 additions and 7 deletions
+5 -4
View File
@@ -1360,10 +1360,10 @@ void check_procedure_overloading(Checker *c, Entity *e) {
error(p->token, "Overloaded procedure `%.*s` as the same type as another procedure in this scope", LIT(name));
is_invalid = true;
break;
case ProcOverload_CallingConvention:
error(p->token, "Overloaded procedure `%.*s` as the same type as another procedure in this scope", LIT(name));
is_invalid = true;
break;
// case ProcOverload_CallingConvention:
// error(p->token, "Overloaded procedure `%.*s` as the same type as another procedure in this scope", LIT(name));
// is_invalid = true;
// break;
case ProcOverload_ParamVariadic:
error(p->token, "Overloaded procedure `%.*s` as the same type as another procedure in this scope", LIT(name));
is_invalid = true;
@@ -1377,6 +1377,7 @@ void check_procedure_overloading(Checker *c, Entity *e) {
case ProcOverload_ParamTypes:
// This is okay :)
break;
}
if (is_invalid) {