diff options
| author | gingerBill <bill@gingerbill.org> | 2020-02-23 10:37:27 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2020-02-23 10:37:27 +0000 |
| commit | 5073fcd39ee8693e8a8e781564f7c65184aec1b2 (patch) | |
| tree | 2c9b623db045b307953b7df0970cad99f823ba01 /src/check_decl.cpp | |
| parent | a72ac6f84140f3cb5f5ed790ec76182efa4f959a (diff) | |
Improve error message on `using` with procedure parameters #568
Diffstat (limited to 'src/check_decl.cpp')
| -rw-r--r-- | src/check_decl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/check_decl.cpp b/src/check_decl.cpp index 0e669e473..ece38e84f 100644 --- a/src/check_decl.cpp +++ b/src/check_decl.cpp @@ -1207,7 +1207,7 @@ void check_proc_body(CheckerContext *ctx_, Token token, DeclInfo *decl, Type *ty } - bool where_clause_ok = evaluate_where_clauses(ctx, decl->scope, &decl->proc_lit->ProcLit.where_clauses, true); + bool where_clause_ok = evaluate_where_clauses(ctx, nullptr, decl->scope, &decl->proc_lit->ProcLit.where_clauses, true); if (!where_clause_ok) { // NOTE(bill, 2019-08-31): Don't check the body as the where clauses failed return; |