Add proper type information to array property

Part of #19158
This commit is contained in:
Bojidar Marinov 2018-06-18 22:24:31 +03:00
parent e19da5ab6a
commit 8ecef3496c
No known key found for this signature in database
GPG key ID: 4D546A8F1E091856
4 changed files with 62 additions and 34 deletions

View file

@ -4093,7 +4093,7 @@ void GDScriptParser::_parse_class(ClassNode *p_class) {
#endif
tokenizer->advance();
Node *subexpr = _parse_and_reduce_expression(p_class, false, autoexport);
Node *subexpr = _parse_and_reduce_expression(p_class, false, autoexport || member._export.type != Variant::NIL);
if (!subexpr) {
if (_recover_from_completion()) {
break;