COBCH1766 Reference modification of objects is only allowed on strings and single dimensional arrays

Reference modification has been attempted on an object that is neither a string nor a single dimensional array.

The following example shows reference modification attempted on an invalid object type.

...

declare dt = java.util.Date::Now
display dt[1:6]  *> remove content in the parentheses
...