File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- *vim9.txt* For Vim バージョン 9.2. Last change: 2026 Feb 14
1+ *vim9.txt* For Vim バージョン 9.2. Last change: 2026 May 04
22
33
44 VIM リファレンスマニュアル by Bram Moolenaar
@@ -2335,11 +2335,6 @@ script と Vim9 script の両方で、辞書以外の値が必要なときに、
23352335
23362336 let &laststatus=v:true
23372337 vim9cmd &laststatus = true
2338- <
2339- - 引数に文字列が必要な場合に文字列を使用しない (| E1174 | ) >vim
2340-
2341- echo substitute('Hallo', 'a', 'e', v:true)
2342- vim9cmd echo substitute('Hallo', 'a', 'e', true) # E1174: String...
23432338<
23442339結果として、| map() | に渡されるリストまたは辞書の項目の型は、その型が宣言または
23452340推論された場合でも変更してはいけない。例えば、これは Vim9 script ではエラーに
Original file line number Diff line number Diff line change 1- *vim9.txt* For Vim version 9.2. Last change: 2026 Feb 14
1+ *vim9.txt* For Vim version 9.2. Last change: 2026 May 04
22
33
44 VIM REFERENCE MANUAL by Bram Moolenaar
@@ -2355,11 +2355,6 @@ in Vim9 script.
23552355
23562356 let &laststatus=v:true
23572357 vim9cmd &laststatus = true
2358- <
2359- - Not using a string where an argument requires a string (| E1174 | ) >vim
2360-
2361- echo substitute('Hallo', 'a', 'e', v:true)
2362- vim9cmd echo substitute('Hallo', 'a', 'e', true) # E1174: String...
23632358<
23642359One consequence is that the item type of a list or dict given to | map() | must
23652360not change when its type is either declared or inferred. For example, this
You can’t perform that action at this time.
0 commit comments