From ed089b44b9634c431785b5fa40c086f59900d740 Mon Sep 17 00:00:00 2001 From: Ginger Bill Date: Sat, 1 Jul 2017 11:38:44 +0100 Subject: `do` keyword for inline statements instead of blocks --- src/types.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/types.cpp') diff --git a/src/types.cpp b/src/types.cpp index d41843ddc..d941b5450 100644 --- a/src/types.cpp +++ b/src/types.cpp @@ -1353,14 +1353,16 @@ ProcTypeOverloadKind are_proc_types_overload_safe(Type *x, Type *y) { TypeProc px = base_type(x)->Proc; TypeProc py = base_type(y)->Proc; - // if (px.calling_convention != py.calling_convention) { - // return ProcOverload_CallingConvention; - // } if (px.is_polymorphic != py.is_polymorphic) { return ProcOverload_Polymorphic; } + + // if (px.calling_convention != py.calling_convention) { + // return ProcOverload_CallingConvention; + // } + if (px.param_count != py.param_count) { return ProcOverload_ParamCount; } -- cgit v1.2.3