diff options
| author | gingerBill <bill@gingerbill.org> | 2023-07-31 11:46:40 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2023-07-31 11:46:40 +0100 |
| commit | 44ea82f8452876c4890884506111e243b8b2a541 (patch) | |
| tree | 60125606c148c6c2fa44d921936cdb7157a6046a /src/check_type.cpp | |
| parent | 0de7df9eab9b256e0d1c8da7c9fc8c422c5ac1a7 (diff) | |
Clean up usage of `using` throughout core and vendor
Diffstat (limited to 'src/check_type.cpp')
| -rw-r--r-- | src/check_type.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/check_type.cpp b/src/check_type.cpp index c52f32f1a..4704f8b9b 100644 --- a/src/check_type.cpp +++ b/src/check_type.cpp @@ -1474,9 +1474,9 @@ gb_internal Type *check_get_params(CheckerContext *ctx, Scope *scope, Ast *_para Type *specialization = nullptr; bool is_using = (p->flags&FieldFlag_using) != 0; - if ((build_context.vet_flags & VetFlag_UsingParam) && is_using) { + if ((check_vet_flags(param) & VetFlag_UsingParam) && is_using) { ERROR_BLOCK(); - error(param, "'using' on a procedure parameter is now allowed when '-vet' or '-vet-using-stmt' is applied"); + error(param, "'using' on a procedure parameter is now allowed when '-vet' or '-vet-using-param' is applied"); error_line("\t'using' is considered bad practice to use as a statement/procedure parameter outside of immediate refactoring\n"); } |