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 -- [email protected] -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20220316175657.0E4761C0497%40moolenaar.net.

Raspunde prin e-mail lui