patch 9.0.1821: Vim9 constructors are always static

Problem:  Vim9 constructors are always static
Solution: make the "static" keyword an error

closes: #12945

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Gianmaria Bajo <mg1979.git@gmail.com>
This commit is contained in:
Gianmaria Bajo
2023-08-29 22:26:30 +02:00
committed by Christian Brabandt
parent 2ac708b548
commit 4b9777a1df
5 changed files with 52 additions and 16 deletions

View File

@ -315,6 +315,10 @@ as the first character in the method name: >
OtherThing._Foo()
enddef
endclass
<
*E1370*
Note that constructors cannot be declared as "static", because they always
are.
==============================================================================