comparison src/testdir/test_vim9_assign.vim @ 31867:7d505d77f6da v9.0.1266

patch 9.0.1266: error for space before ": type" is inconsistent Commit: https://github.com/vim/vim/commit/ce93d162da8de2419c15b63286e2f72a8fe3bf2d Author: Bram Moolenaar <Bram@vim.org> Date: Mon Jan 30 21:12:34 2023 +0000 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 https://github.com/vim/vim/issues/11868)
author Bram Moolenaar <Bram@vim.org>
date Mon, 30 Jan 2023 22:15:03 +0100
parents dbec60b8c253
children edea3992cb01
comparison
equal deleted inserted replaced
31866:b398a8a9ad05 31867:7d505d77f6da
356 var jl: list<job> = [null_job] 356 var jl: list<job> = [null_job]
357 var cl: list<channel> = [null_channel] 357 var cl: list<channel> = [null_channel]
358 endif 358 endif
359 END 359 END
360 v9.CheckDefAndScriptSuccess(lines) 360 v9.CheckDefAndScriptSuccess(lines)
361 enddef
362
363 def Test_type_with_extra_white()
364 var lines =<< trim END
365 const x : number = 3
366 END
367 v9.CheckDefExecAndScriptFailure(lines, 'E1059')
361 enddef 368 enddef
362 369
363 def Test_keep_type_after_assigning_null() 370 def Test_keep_type_after_assigning_null()
364 var lines =<< trim END 371 var lines =<< trim END
365 var b: blob 372 var b: blob