diff runtime/doc/vim9class.txt @ 33698:643db54ed3e7 v9.0.2084

patch 9.0.2084: Vim9: abstract static methods are possible Commit: https://github.com/vim/vim/commit/ef9e3f8924363939ff45fa385f50f57146ff365c Author: Yegappan Lakshmanan <yegappan@yahoo.com> Date: Thu Nov 2 20:43:57 2023 +0100 patch 9.0.2084: Vim9: abstract static methods are possible Problem: Vim9: abstract static methods are possible Solution: Disallow abstract static methods fixes: #13462 closes: #13466 Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Thu, 02 Nov 2023 21:00:04 +0100
parents f126ffc85f7c
children 2172872dfbcd
line wrap: on
line diff
--- a/runtime/doc/vim9class.txt
+++ b/runtime/doc/vim9class.txt
@@ -411,6 +411,8 @@ prefix when defining the method: >
 	   abstract static def SetColor()
 	endclass
 <
+A static method in an abstract class cannot be an abstract method.
+
 						*E1373*
 A class extending the abstract class must implement all the abstract methods.
 The signature (arguments, argument types and return type) must be exactly the