Class that inherits an array class now inherits its internal array flag too.

[INTERPRETER]
* BUG: Class that inherits an array class now inherits its internal array flag too.
This commit is contained in:
gambas 2021-03-08 16:19:12 +01:00
parent e5f8cfb6d5
commit 8e2879f269

View file

@ -959,6 +959,8 @@ void CLASS_inheritance(CLASS *class, CLASS *parent)
if (parent->auto_create)
class->auto_create = TRUE;
class->is_array = parent->is_array;
if (!class->array_type)
class->array_type = parent->array_type;