patch 9.0.2078: several problems with type aliases
Problem: several problems with type aliases
Solution: Check for more error conditions, add tests,
fix issues
Check for more error conditions and add additional tests
fixes #13434
fixes #13437
fixes #13438
closes #13441
Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
diff --git a/src/vim9execute.c b/src/vim9execute.c
index 7901f6e..ff54bcb 100644
--- a/src/vim9execute.c
+++ b/src/vim9execute.c
@@ -3809,7 +3809,7 @@
tv = STACK_TV_VAR(iptr->isn_arg.number);
if (STACK_TV_BOT(0)->v_type == VAR_TYPEALIAS)
{
- semsg(_(e_using_typealias_as_variable),
+ semsg(_(e_using_typealias_as_value),
STACK_TV_BOT(0)->vval.v_typealias->ta_name);
clear_tv(STACK_TV_BOT(0));
goto on_error;