diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2025-12-21 11:53:44 +0000 |
|---|---|---|
| committer | gingerBill <gingerBill@users.noreply.github.com> | 2025-12-21 11:53:44 +0000 |
| commit | d139c72fc24fdb574861ac22fc11b91de944b2a4 (patch) | |
| tree | e6bdc024d3736998d7830bd7fc9c086676dd3fbf /src/parser.cpp | |
| parent | e138e76f21532527726897421b139fde9d05e7ce (diff) | |
Make `using` as a statement an opt-in with `#+feature using-stmt`
Diffstat (limited to 'src/parser.cpp')
| -rw-r--r-- | src/parser.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/parser.cpp b/src/parser.cpp index 06703d643..e27e184d0 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -6449,6 +6449,8 @@ gb_internal u64 parse_feature_tag(Token token_for_pos, String s) { syntax_error(token_for_pos, "Invalid feature flag name: %.*s", LIT(p)); error_line("\tExpected one of the following\n"); error_line("\tdynamic-literals\n"); + error_line("\tglobal-context\n"); + error_line("\tusing-stmt\n"); error_line("\tinteger-division-by-zero:trap\n"); error_line("\tinteger-division-by-zero:zero\n"); error_line("\tinteger-division-by-zero:self\n"); |