summaryrefslogtreecommitdiff
path: root/modules/gdscript
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-08-29 08:33:51 +0200
committerGitHub <noreply@github.com>2019-08-29 08:33:51 +0200
commit7995ce03f353b5c56ee0984e6fcc4ca3fb2ae081 (patch)
tree66a9e3af57696c5240cb5083b4c7e8885f9aa764 /modules/gdscript
parentdc3f8c49df5e6610b91df9e9fc043e58eb757edb (diff)
parentb70b16a20ff7a17c0cbb199867283710c1fc73b8 (diff)
Merge pull request #31738 from bojidar-bg/31056-class_name-extends
Remove check for class_name and extends order
Diffstat (limited to 'modules/gdscript')
-rw-r--r--modules/gdscript/gdscript_parser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/gdscript_parser.cpp b/modules/gdscript/gdscript_parser.cpp
index a9f22225a0..99bfdae7ec 100644
--- a/modules/gdscript/gdscript_parser.cpp
+++ b/modules/gdscript/gdscript_parser.cpp
@@ -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;