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:
committed by
Christian Brabandt
parent
2ac708b548
commit
4b9777a1df
@ -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.
|
||||
|
||||
==============================================================================
|
||||
|
||||
|
||||
Reference in New Issue
Block a user