From ab8624d2f51452f8058bf07c2732c5ce12f9eec2 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Sat, 10 May 2014 10:46:49 +0200 Subject: [PATCH] Implement support for arrays for the indexer operator. Fixes #6182 --- lib/config/aexpression.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/config/aexpression.cpp b/lib/config/aexpression.cpp index 01d19b17b..bd4f0ef2f 100644 --- a/lib/config/aexpression.cpp +++ b/lib/config/aexpression.cpp @@ -437,6 +437,9 @@ Value AExpression::OpIndexer(const AExpression *expr, const Dictionary::Ptr& loc if (value.IsObjectType()) { Dictionary::Ptr dict = value; return dict->Get(index); + } else if (value.IsObjectType()) { + Array::Ptr arr = value; + return arr->Get(index); } else if (value.IsObjectType()) { Object::Ptr object = value; const Type *type = object->GetReflectionType();