Mercurial > vim
comparison runtime/doc/vim9class.txt @ 33068:d42927c6e556 v9.0.1821
patch 9.0.1821: Vim9 constructors are always static
Commit: https://github.com/vim/vim/commit/4b9777a1dfc10bd2634404cb039a0df539549c93
Author: Gianmaria Bajo <mg1979.git@gmail.com>
Date: Tue Aug 29 22:26:30 2023 +0200
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>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 29 Aug 2023 22:30:10 +0200 |
parents | 1d18c7fe609f |
children | 499ba27ba0f6 |
comparison
equal
deleted
inserted
replaced
33067:5c38f02377d5 | 33068:d42927c6e556 |
---|---|
313 enddef | 313 enddef |
314 def Bar() | 314 def Bar() |
315 OtherThing._Foo() | 315 OtherThing._Foo() |
316 enddef | 316 enddef |
317 endclass | 317 endclass |
318 < | |
319 *E1370* | |
320 Note that constructors cannot be declared as "static", because they always | |
321 are. | |
318 | 322 |
319 ============================================================================== | 323 ============================================================================== |
320 | 324 |
321 4. Using an abstract class *Vim9-abstract-class* | 325 4. Using an abstract class *Vim9-abstract-class* |
322 | 326 |