Patch 9.0.0728 (after 9.0.0726)
Problem: extend() test fails.
Solution: Item is final, not const.
Files: src/testdir/test_vim9_builtin.vim
*** ../vim-9.0.0727/src/testdir/test_vim9_builtin.vim 2022-09-30
17:57:32.543287031 +0100
--- src/testdir/test_vim9_builtin.vim 2022-10-11 23:11:18.132829160 +0100
***************
*** 1223,1236 ****
END
v9.CheckDefSuccess(lines)
! # item in a for loop is const
lines =<< trim END
var l: list<dict<any>> = [{n: 1}]
for item in l
item->extend({x: 2})
endfor
END
! v9.CheckDefFailure(lines, 'E1307: Argument 1: Trying to modify a const
dict<any>')
enddef
def Test_extendnew()
--- 1223,1236 ----
END
v9.CheckDefSuccess(lines)
! # item in a for loop is final
lines =<< trim END
var l: list<dict<any>> = [{n: 1}]
for item in l
item->extend({x: 2})
endfor
END
! v9.CheckDefSuccess(lines)
enddef
def Test_extendnew()
*** ../vim-9.0.0727/src/version.c 2022-10-11 21:51:09.962103580 +0100
--- src/version.c 2022-10-11 23:12:32.428503081 +0100
***************
*** 701,702 ****
--- 701,704 ----
{ /* Add new patch number below this line */
+ /**/
+ 728,
/**/
--
ARTHUR: Bloody peasant!
DENNIS: Oh, what a give away. Did you hear that, did you hear that, eh?
That's what I'm on about -- did you see him repressing me, you saw it
didn't you?
The Quest for the Holy Grail (Monty Python)
/// 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/20221011221330.40CE81C5296%40moolenaar.net.