aboutsummaryrefslogtreecommitdiff
path: root/src/check_decl.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2019-09-08 12:12:41 +0100
committergingerBill <bill@gingerbill.org>2019-09-08 12:12:41 +0100
commit4afc78efc682152a9b096781a1598fd1841ca938 (patch)
tree9aecfa8070f2e26c73ce00fe95e6651a5175a77f /src/check_decl.cpp
parentd54255505a1b7b2a460ce7f4a18ea30a92286aa1 (diff)
Add `where` clauses to `struct` and `union`
Diffstat (limited to 'src/check_decl.cpp')
-rw-r--r--src/check_decl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/check_decl.cpp b/src/check_decl.cpp
index 388b37864..173ba4a90 100644
--- a/src/check_decl.cpp
+++ b/src/check_decl.cpp
@@ -1176,7 +1176,7 @@ void check_proc_body(CheckerContext *ctx_, Token token, DeclInfo *decl, Type *ty
}
- bool where_clause_ok = evaluate_where_clauses(ctx, decl, true);
+ bool where_clause_ok = evaluate_where_clauses(ctx, 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;