GDScript: Replace abstract keyword with @abstract annotation
Co-authored-by: Danil Alexeev <dalexeev12@yandex.ru>
This commit is contained in:
parent
88b9932ce1
commit
1085200f51
31 changed files with 179 additions and 197 deletions
|
|
@ -1,8 +0,0 @@
|
|||
extends RefCounted
|
||||
|
||||
abstract class A:
|
||||
abstract func f():
|
||||
pass
|
||||
|
||||
func test():
|
||||
pass
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
GDTEST_PARSER_ERROR
|
||||
Expected end of statement after abstract function declaration, found ":" instead.
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
extends RefCounted
|
||||
|
||||
abstract class A:
|
||||
# Currently, an abstract function cannot be static.
|
||||
abstract static func f()
|
||||
|
||||
func test():
|
||||
pass
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
GDTEST_PARSER_ERROR
|
||||
Expected "class" or "func" after "abstract".
|
||||
|
|
@ -1,2 +1,2 @@
|
|||
GDTEST_PARSER_ERROR
|
||||
Expected ":" after function declaration.
|
||||
Expected end of statement after bodyless function declaration, found "{" instead.
|
||||
|
|
|
|||
|
|
@ -1,7 +0,0 @@
|
|||
extends RefCounted
|
||||
|
||||
abstract abstract class A:
|
||||
pass
|
||||
|
||||
func test():
|
||||
pass
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
GDTEST_PARSER_ERROR
|
||||
Expected "class_name", "extends", "class", or "func" after "abstract".
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
extends RefCounted
|
||||
|
||||
abstract class A:
|
||||
abstract abstract func f()
|
||||
|
||||
func test():
|
||||
pass
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
GDTEST_PARSER_ERROR
|
||||
Expected "class" or "func" after "abstract".
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
# No colon --v
|
||||
var f = func () -> void
|
||||
pass
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
GDTEST_PARSER_ERROR
|
||||
Expected ":" after lambda declaration.
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
extends RefCounted
|
||||
|
||||
abstract class A:
|
||||
# Currently, an abstract function cannot be static.
|
||||
static abstract func f()
|
||||
|
||||
func test():
|
||||
pass
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
GDTEST_PARSER_ERROR
|
||||
Expected "func" or "var" after "static".
|
||||
Loading…
Add table
Add a link
Reference in a new issue