diff options
author | Ernie Rael <errael@raelity.com> | 2023-12-11 17:40:46 +0100 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2023-12-11 17:40:46 +0100 |
commit | 9ed53752df1020a6881ac68d1bde2852c9a680aa (patch) | |
tree | a99975a155438cacfc942a073910e1e038ed8f5a /src/proto | |
parent | fa920da283f6651083b40d0aa28a9eacd5116593 (diff) |
patch 9.0.2156: Vim9: can use typealias in assignmentv9.0.2156
Problem: Vim9: can use typealias in an assignment
Solution: Generate errors when class/typealias involved in the rhs of an
assignment
closes: #13637
Signed-off-by: Ernie Rael <errael@raelity.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Generate errors when class/typealias involved in assignment.
Diffstat (limited to 'src/proto')
-rw-r--r-- | src/proto/vim9type.pro | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/proto/vim9type.pro b/src/proto/vim9type.pro index d5e4d4816a..85cc96fb23 100644 --- a/src/proto/vim9type.pro +++ b/src/proto/vim9type.pro @@ -35,4 +35,7 @@ type_T *get_member_type_from_stack(int count, int skip, cctx_T *cctx); char *vartype_name(vartype_T type); char *type_name(type_T *type, char **tofree); void f_typename(typval_T *argvars, typval_T *rettv); +int check_vartype_is_value(vartype_T typ); +int check_typval_is_value(typval_T *tv); +int check_type_is_value(type_T *type); /* vim: set ft=c : */ |