patch 8.2.1408: Vim9: type casting not supported
Problem: Vim9: type casting not supported.
Solution: Introduce type casting.
diff --git a/src/testdir/test_vim9_expr.vim b/src/testdir/test_vim9_expr.vim
index 7891127..0af5402 100644
--- a/src/testdir/test_vim9_expr.vim
+++ b/src/testdir/test_vim9_expr.vim
@@ -1247,6 +1247,12 @@
let $TESTVAR = 'testvar'
+" type casts
+def Test_expr7t()
+ let ls: list<string> = ['a', <string>g:string_empty]
+ let ln: list<number> = [<number>g:anint, <number>g:alsoint]
+enddef
+
" test low level expression
def Test_expr7_number()
# number constant