Patch 9.0.1122
Problem:    Class member access is not fully tested yet.
Solution:   Add more tests.
Files:      src/testdir/test_vim9_class.vim


*** ../vim-9.0.1121/src/testdir/test_vim9_class.vim     2022-12-25 
19:31:29.517203739 +0000
--- src/testdir/test_vim9_class.vim     2022-12-31 18:45:34.749841202 +0000
***************
*** 374,379 ****
--- 374,381 ----
           this.lnum = 1
           this.col = 1
           static counter = 0
+          static _secret = 7
+          public static  anybody = 42
  
           def AddToCounter(nr: number)
             counter += nr
***************
*** 386,392 ****
        assert_fails('echo TextPos.noSuchMember', 'E1338:')
  
        assert_fails('TextPos.noSuchMember = 2', 'E1337:')
!       assert_fails('TextPos.counter += 5', 'E1335')
    END
    v9.CheckScriptSuccess(lines)
  enddef
--- 388,404 ----
        assert_fails('echo TextPos.noSuchMember', 'E1338:')
  
        assert_fails('TextPos.noSuchMember = 2', 'E1337:')
!       assert_fails('TextPos.counter = 5', 'E1335:')
!       assert_fails('TextPos.counter += 5', 'E1335:')
! 
!       assert_fails('echo TextPos._secret', 'E1333:')
!       assert_fails('TextPos._secret = 8', 'E1333:')
! 
!       assert_equal(42, TextPos.anybody)
!       TextPos.anybody = 12
!       assert_equal(12, TextPos.anybody)
!       TextPos.anybody += 5
!       assert_equal(17, TextPos.anybody)
    END
    v9.CheckScriptSuccess(lines)
  enddef
*** ../vim-9.0.1121/src/version.c       2022-12-31 15:12:58.050637307 +0000
--- src/version.c       2022-12-31 18:41:23.373936360 +0000
***************
*** 697,698 ****
--- 697,700 ----
  {   /* Add new patch number below this line */
+ /**/
+     1122,
  /**/

-- 
It is illegal to take more than three sips of beer at a time while standing.
                [real standing law in Texas, United States of America]

 /// 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/20221231190304.B82111C0AA3%40moolenaar.net.

Raspunde prin e-mail lui