diff options
author | Yegappan Lakshmanan <yegappan@yahoo.com> | 2024-04-13 17:58:09 +0200 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2024-04-13 18:04:53 +0200 |
commit | c51578fed8f21cf3c1ff72bbb599dca2db02be84 (patch) | |
tree | 230f9c92871fb512962c94e779591281229656fc /runtime | |
parent | 122d068585686babd63f0b729759ec269171d464 (diff) |
patch 9.1.0314: Vim9: Can define a class in a functionv9.1.0314
Problem: Vim9: Can define a class in a function
(Doug Kearns)
Solution: Give an error for a class defined in a function,
slightly reword some public error messages
(Yegappan Lakshmanan)
fixes: #13184
fixes: #13326
closes: #14537
Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/tags | 1 | ||||
-rw-r--r-- | runtime/doc/vim9.txt | 3 | ||||
-rw-r--r-- | runtime/doc/vim9class.txt | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/runtime/doc/tags b/runtime/doc/tags index fc55f84373..229a4ef1ea 100644 --- a/runtime/doc/tags +++ b/runtime/doc/tags @@ -4534,6 +4534,7 @@ E1423 vim9class.txt /*E1423* E1424 vim9class.txt /*E1424* E1425 vim9class.txt /*E1425* E1426 vim9class.txt /*E1426* +E1429 vim9class.txt /*E1429* E143 autocmd.txt /*E143* E144 various.txt /*E144* E145 starting.txt /*E145* diff --git a/runtime/doc/vim9.txt b/runtime/doc/vim9.txt index ffb5c2e19a..7a49aa0826 100644 --- a/runtime/doc/vim9.txt +++ b/runtime/doc/vim9.txt @@ -1,4 +1,4 @@ -*vim9.txt* For Vim version 9.1. Last change: 2024 Apr 12 +*vim9.txt* For Vim version 9.1. Last change: 2024 Apr 13 VIM REFERENCE MANUAL by Bram Moolenaar @@ -1521,7 +1521,6 @@ Custom types can be defined with `:type`: > :type MyList list<string> Custom types must start with a capital letter, to avoid name clashes with builtin types added later, similarly to user functions. -{not implemented yet} And classes and interfaces can be used as types: > :class MyClass diff --git a/runtime/doc/vim9class.txt b/runtime/doc/vim9class.txt index 804e02dc17..ef96aa9076 100644 --- a/runtime/doc/vim9class.txt +++ b/runtime/doc/vim9class.txt @@ -1,4 +1,4 @@ -*vim9class.txt* For Vim version 9.1. Last change: 2024 Apr 04 +*vim9class.txt* For Vim version 9.1. Last change: 2024 Apr 13 VIM REFERENCE MANUAL by Bram Moolenaar @@ -593,7 +593,7 @@ A class is defined between `:class` and `:endclass`. The whole class is defined in one script file. It is not possible to add to a class later. A class can only be defined in a |Vim9| script file. *E1316* -A class cannot be defined inside a function. +A class cannot be defined inside a function. *E1429* It is possible to define more than one class in a script file. Although it usually is better to export only one main class. It can be useful to define |