Patch 8.2.4581
Problem: Null types not fully tested.
Solution: Add some more tests using null types.
Files: src/testdir/test_vim9_expr.vim
*** ../vim-8.2.4580/src/testdir/test_vim9_expr.vim 2022-03-15 20:21:26.401378126 +0000
--- src/testdir/test_vim9_expr.vim 2022-03-16 14:34:13.831195653 +0000
***************
*** 2091,2096 ****
--- 2091,2101 ----
var llstring: list<list<string>> = [['text'], []]
llstring = [[], ['text']]
llstring = [[], []]
+
+ var ls = [null_string]
+ assert_equal('list<string>', typename(ls))
+ var lb = [null_blob]
+ assert_equal('list<blob>', typename(lb))
END
v9.CheckDefAndScriptSuccess(lines)
***************
*** 2608,2613 ****
--- 2613,2623 ----
# comment to start fold is OK
var x1: number #{{ fold
var x2 = 9 #{{ fold
+
+ var ds = {k: null_string}
+ assert_equal('dict<string>', typename(ds))
+ var dl = {a: null_list}
+ assert_equal('dict<list<unknown>>', typename(dl))
END
v9.CheckDefAndScriptSuccess(lines)
*** ../vim-8.2.4580/src/version.c 2022-03-16 17:53:58.315925803 +0000
--- src/version.c 2022-03-16 17:55:49.539480324 +0000
***************
*** 752,753 ****
--- 752,755 ----
{ /* Add new patch number below this line */
+ /**/
+ 4581,
/**/
--
ARTHUR: Right! Knights! Forward!
ARTHUR leads a charge toward the castle. Various shots of them battling on,
despite being hit by a variety of farm animals.
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
/// Bram Moolenaar -- Br...@Moolenaar.net --
http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features --
http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims --
http://ICCF-Holland.org ///