mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
patch 8.2.3239: Vim9: no error using heredoc for a number variable
Problem: Vim9: no error using heredoc for a number variable. Solution: Add a type check. (closes #8627)
This commit is contained in:
@@ -1392,6 +1392,14 @@ def Test_heredoc()
|
||||
[END]
|
||||
CheckScriptFailure(lines, 'E1145: Missing heredoc end marker: END')
|
||||
delfunc! g:Func
|
||||
|
||||
lines =<< trim END
|
||||
var lines: number =<< trim STOP
|
||||
aaa
|
||||
bbb
|
||||
STOP
|
||||
END
|
||||
CheckDefAndScriptFailure(lines, 'E1012: Type mismatch; expected number but got list<string>', 1)
|
||||
enddef
|
||||
|
||||
def Test_var_func_call()
|
||||
|
Reference in New Issue
Block a user