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

@ -960,6 +960,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;