From 2ef0bdb1c97b1c11c605c272180aa028533d8d44 Mon Sep 17 00:00:00 2001 From: "A. R. Shajii" Date: Thu, 23 Mar 2023 23:35:55 -0400 Subject: [PATCH] clang-format --- codon/parser/visitors/typecheck/call.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/codon/parser/visitors/typecheck/call.cpp b/codon/parser/visitors/typecheck/call.cpp index 6e33cfd3..ab02fc39 100644 --- a/codon/parser/visitors/typecheck/call.cpp +++ b/codon/parser/visitors/typecheck/call.cpp @@ -428,8 +428,7 @@ ExprPtr TypecheckVisitor::callReorderArguments(FuncTypePtr calleeFn, CallExpr *e unify(typ, calleeFn->funcGenerics[si].type); } else { if (calleeFn->funcGenerics[si].type->getUnbound() && - !calleeFn->ast->args[si].defaultValue && - !partial && + !calleeFn->ast->args[si].defaultValue && !partial && in(niGenerics, calleeFn->funcGenerics[si].name)) { error("generic '{}' not provided", calleeFn->funcGenerics[si].niceName); }