aboutsummaryrefslogtreecommitdiff
path: root/src/check_type.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2024-07-14 13:20:12 +0100
committergingerBill <bill@gingerbill.org>2024-07-14 13:20:12 +0100
commit0a530b5ce8642508c5df2fdb9ec43682be07d5cd (patch)
treed7a83cc468ba952a82740bd7b6c0adf1d42568ec /src/check_type.cpp
parent8650180cccad02b39a00dcd05f696a8e3879c29e (diff)
Add error for `#no_capture` being reserved for future use
Diffstat (limited to 'src/check_type.cpp')
-rw-r--r--src/check_type.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/check_type.cpp b/src/check_type.cpp
index d0dddb62b..fea937e4e 100644
--- a/src/check_type.cpp
+++ b/src/check_type.cpp
@@ -2070,7 +2070,7 @@ gb_internal Type *check_get_params(CheckerContext *ctx, Scope *scope, Ast *_para
// ignore
} else {
if (is_type_internally_pointer_like(type)) {
- // okay
+ error(name, "'#no_capture' is currently reserved for future use");
} else {
ERROR_BLOCK();
error(name, "'#no_capture' can only be applied to pointer-like types");