From 4642bedb436981e92e3312f06bfcb2eb34074596 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sat, 1 Apr 2023 14:51:20 +0300 Subject: disallow certain kinds of types in templates --- include/cu/scope.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/cu/scope.h') diff --git a/include/cu/scope.h b/include/cu/scope.h index 5a75427..d8fd2c4 100644 --- a/include/cu/scope.h +++ b/include/cu/scope.h @@ -166,4 +166,7 @@ struct ast_node *file_scope_resolve_call(struct scope *scope, int implements(enum match_flags flags, struct scope *scope, struct ast_node *arg_type, struct ast_node *param_type); +int primitive_type(struct ast_node *type); +int fully_qualified(struct ast_node *type); + #endif /* SCOPE_H */ -- cgit v1.3