diff options
| author | gingerBill <bill@gingerbill.org> | 2018-08-09 17:58:11 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2018-08-09 17:58:11 +0100 |
| commit | 70586b1cf81dcf7940bd39ce7b2c18ed8f0d2aa5 (patch) | |
| tree | d05b2342675da410c5ffde5e5e36247e4a2cf3d1 /src/check_type.cpp | |
| parent | 877a78d6ba2f31ac22278a780f6996eac18f02a4 (diff) | |
`auto_cast` prefix for procedure parameters
Diffstat (limited to 'src/check_type.cpp')
| -rw-r--r-- | src/check_type.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/check_type.cpp b/src/check_type.cpp index 7e443ff6f..c7417c359 100644 --- a/src/check_type.cpp +++ b/src/check_type.cpp @@ -1043,6 +1043,9 @@ Type *check_get_params(CheckerContext *ctx, Scope *scope, Ast *_params, bool *is if (p->flags&FieldFlag_no_alias) { param->flags |= EntityFlag_NoAlias; } + if (p->flags&FieldFlag_auto_cast) { + param->flags |= EntityFlag_AutoCast; + } param->state = EntityState_Resolved; // NOTE(bill): This should have be resolved whilst determining it add_entity(ctx->checker, scope, name, param); |