@@ -281,7 +281,7 @@ start with an upper case letter even when using the "s:" prefix. In legacy
281
281
script "s:funcref" could be used, because it could not be referred to with
282
282
"funcref". In Vim9 script it can, therefore "s:Funcref" must be used to avoid
283
283
that the name interferes with builtin functions.
284
- *vim9-s-namespace*
284
+ *vim9-s-namespace* *E1268 *
285
285
The use of the "s:" prefix is not supported at the Vim9 script level. All
286
286
functions and variables without a prefix are script-local.
287
287
@@ -857,6 +857,8 @@ No curly braces expansion ~
857
857
Command modifiers are not ignored ~
858
858
*E1176*
859
859
Using a command modifier for a command that does not use it gives an error.
860
+ *E1082*
861
+ Also, using a command modifier without a following command is now an error.
860
862
861
863
862
864
Dictionary literals ~
@@ -1234,6 +1236,9 @@ variables can be accessed without the "s:" prefix. They must be defined
1234
1236
before the function is compiled. If the script the function is defined in is
1235
1237
legacy script, then script-local variables must be accessed with the "s:"
1236
1238
prefix if they do not exist at the time of compiling.
1239
+ *E1269*
1240
+ Script-local variables in a | Vim9 | script must be declared at the script
1241
+ level. They cannot be created in a function, also not in a legacy function.
1237
1242
1238
1243
*:defc* *:defcompile*
1239
1244
:defc[ompile] Compile functions defined in the current script that
@@ -1492,6 +1497,8 @@ value is not actually changed. If you need to change the type, e.g. to change
1492
1497
it to a string, use the | string() | function. Or use | str2nr() | to convert a
1493
1498
string to a number.
1494
1499
1500
+ If a type is given where it is not expected you can get *E1272* .
1501
+
1495
1502
1496
1503
Type inference ~
1497
1504
*type-inference*
@@ -1696,8 +1703,8 @@ be exported. {not implemented yet: class, interface}
1696
1703
1697
1704
1698
1705
Import ~
1699
- *:import* *:imp* *E1094* *E1047* *E1262*
1700
- *E1048* *E1049* *E1053* *E1071* *E1236*
1706
+ *:import* *:imp* *E1094* *E1047* *E1262*
1707
+ *E1048* *E1049* *E1053* *E1071* *E1088 * *E1236*
1701
1708
The exported items can be imported in another script. The import syntax has
1702
1709
two forms. The simple form: >
1703
1710
import {filename}
0 commit comments