1
0
forked from aniani/vim

patch 9.0.1266: error for space before ": type" is inconsistent

Problem:    Error for space before ": type" is inconsistent.
Solution:   Give E1059 in more places. (closes #11868)
This commit is contained in:
Bram Moolenaar
2023-01-30 21:12:34 +00:00
parent b8bebd0cd7
commit ce93d162da
6 changed files with 29 additions and 5 deletions

View File

@@ -360,6 +360,13 @@ def Test_null_values()
v9.CheckDefAndScriptSuccess(lines)
enddef
def Test_type_with_extra_white()
var lines =<< trim END
const x : number = 3
END
v9.CheckDefExecAndScriptFailure(lines, 'E1059')
enddef
def Test_keep_type_after_assigning_null()
var lines =<< trim END
var b: blob