mirror of
https://github.com/vim/vim.git
synced 2025-10-02 05:04:20 -04:00
patch 8.2.1408: Vim9: type casting not supported
Problem: Vim9: type casting not supported. Solution: Introduce type casting.
This commit is contained in:
@@ -1247,6 +1247,12 @@ let g:dict_one = #{one: 1}
|
||||
|
||||
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
|
||||
|
Reference in New Issue
Block a user