mirror of
https://github.com/godotengine/godot.git
synced 2025-02-23 23:15:07 +08:00
parent
538328898b
commit
b70b16a20f
@ -3366,7 +3366,7 @@ void GDScriptParser::_parse_extends(ClassNode *p_class) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!p_class->constant_expressions.empty() || !p_class->subclasses.empty() || !p_class->functions.empty() || !p_class->variables.empty() || p_class->classname_used) {
|
||||
if (!p_class->constant_expressions.empty() || !p_class->subclasses.empty() || !p_class->functions.empty() || !p_class->variables.empty()) {
|
||||
|
||||
_set_error("\"extends\" must be used before anything else.");
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user