aboutsummaryrefslogtreecommitdiff
path: root/src/checker.c
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2017-05-28 18:51:42 +0100
committerGinger Bill <bill@gingerbill.org>2017-05-28 18:51:42 +0100
commit98dbbf11f3e19fefc08a34ba0f9a5a96e083ea78 (patch)
tree77d10889503946197a766f270a77c23cf5d63b54 /src/checker.c
parentf4924e39d487f95bbfbfbc83dd0ae237923505ae (diff)
Fix procedure overloading distinguishing
Diffstat (limited to 'src/checker.c')
-rw-r--r--src/checker.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/checker.c b/src/checker.c
index 709a5ce29..ecd13eb36 100644
--- a/src/checker.c
+++ b/src/checker.c
@@ -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) {