diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2026-01-30 11:00:18 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-30 11:00:18 +0000 |
| commit | c4952c0b7e91e4e10195593e322c1259d2c9ab33 (patch) | |
| tree | 247c11fd63a68d31e8c4e603df7372b4b90a43a5 /src/parser.cpp | |
| parent | 5d47a2e92dc1e919124af6fceb740830b6ea6886 (diff) | |
| parent | 19b545e7cb0b09a7c8b3424ca8276b9e37f8de80 (diff) | |
Merge pull request #6048 from odin-lang/bill/feature-using-stmt
Make `using` as a statement 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 c14055275..360537ab7 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -6504,6 +6504,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"); |