patch 8.2.4581: null types not fully tested
Problem: Null types not fully tested.
Solution: Add some more tests using null types.
diff --git a/src/testdir/test_vim9_expr.vim b/src/testdir/test_vim9_expr.vim
index 83cdab1..02ea54a 100644
--- a/src/testdir/test_vim9_expr.vim
+++ b/src/testdir/test_vim9_expr.vim
@@ -2091,6 +2091,11 @@
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,6 +2613,11 @@
# 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)
diff --git a/src/version.c b/src/version.c
index fe974f6..fd63279 100644
--- a/src/version.c
+++ b/src/version.c
@@ -751,6 +751,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 4581,
+/**/
4580,
/**/
4579,