Merge pull request #31738 from bojidar-bg/31056-class_name-extends

Remove check for class_name and extends order
This commit is contained in:
Rémi Verschelde 2019-08-29 08:33:51 +02:00 committed by GitHub
commit 7995ce03f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;