patch 9.1.0626: Vim9: need more tests with null objects

Commit: 
https://github.com/vim/vim/commit/94082b60d5087246b19615d9b7d46e377c4eb766
Author: Ernie Rael <err...@raelity.com>
Date:   Fri Jul 26 19:40:29 2024 +0200

    patch 9.1.0626: Vim9: need more tests with null objects
    
    Problem:  Vim9: need more tests with null objects
              (after v9.1.0620)
    Solution: add one more test with null_object
              (Ernie Rael)
    
    closes: #15360
    
    Signed-off-by: Ernie Rael <err...@raelity.com>
    Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/src/testdir/test_vim9_class.vim b/src/testdir/test_vim9_class.vim
index b2ef0db98..56c7b99d9 100644
--- a/src/testdir/test_vim9_class.vim
+++ b/src/testdir/test_vim9_class.vim
@@ -686,6 +686,19 @@ def Test_object_not_set()
     X()
   END
   v9.CheckSourceFailure(lines, 'E1324: Using an Object as a String', 2)
+
+  # Use a null object variable that vim wants to force to number.
+  lines =<< trim END
+    vim9script
+
+    def X()
+      var o = null_object
+      var l = [ 1, o]
+      sort(l, 'N')
+    enddef
+    X()
+  END
+  v9.CheckSourceFailure(lines, 'E1324: Using an Object as a String', 3)
 enddef
 
 " Null object assignment and comparison
diff --git a/src/version.c b/src/version.c
index a7b25391f..54fda947b 100644
--- a/src/version.c
+++ b/src/version.c
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    626,
 /**/
     625,
 /**/

-- 
-- 
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 vim_dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/E1sXP0b-00ChE7-KM%40256bit.org.

Raspunde prin e-mail lui