diff --git a/pymola/ast.py b/pymola/ast.py
index <HASH>..<HASH> 100644
--- a/pymola/ast.py
+++ b/pymola/ast.py
@@ -461,7 +461,7 @@ ImportFromClause.ast_spec = {
 
 ElementModification.ast_spec = {
     'component': Field(ComponentRef, ComponentRef()),
-    'modifications': FieldList([Primary, Expression, ClassModification], []),
+    'modifications': FieldList([Primary, Expression, ClassModification, Array], []),
 }
 
 ShortClassDefinition.ast_spec = {
Allow element modifications to be of type Array