patch 9.1.1586: Vim9: can define an enum/interface in a function
Problem: Vim9: can define an enum/interface in a function
(lacygoill)
Solution: Give an error when defining an enum or an interface inside a
function (Yegappan Lakshmanan)
fixes: #17835
fixes: #17837
closes: #17837
Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
4de931daae
commit
9239eadc71
8
src/po/vim.pot
generated
8
src/po/vim.pot
generated
@ -8,7 +8,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2025-07-21 21:33+0200\n"
|
||||
"POT-Creation-Date: 2025-07-24 19:13+0200\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
@ -8571,6 +8571,12 @@ msgid ""
|
||||
"class \"%s\""
|
||||
msgstr ""
|
||||
|
||||
msgid "E1435: Enum can only be used in a script"
|
||||
msgstr ""
|
||||
|
||||
msgid "E1436: Interface can only be used in a script"
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgid "E1500: Cannot mix positional and non-positional arguments: %s"
|
||||
msgstr ""
|
||||
|
||||
Reference in New Issue
Block a user