mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Add error for #no_capture being reserved for future use
This commit is contained in:
+1
-1
@@ -2070,7 +2070,7 @@ gb_internal Type *check_get_params(CheckerContext *ctx, Scope *scope, Ast *_para
|
|||||||
// ignore
|
// ignore
|
||||||
} else {
|
} else {
|
||||||
if (is_type_internally_pointer_like(type)) {
|
if (is_type_internally_pointer_like(type)) {
|
||||||
// okay
|
error(name, "'#no_capture' is currently reserved for future use");
|
||||||
} else {
|
} else {
|
||||||
ERROR_BLOCK();
|
ERROR_BLOCK();
|
||||||
error(name, "'#no_capture' can only be applied to pointer-like types");
|
error(name, "'#no_capture' can only be applied to pointer-like types");
|
||||||
|
|||||||
Reference in New Issue
Block a user