S09006

Error Code

S09006

Error Message

JIT: Scalar assignment from vector requires scalar indexing. RefId: S09006

Probable Causes

When assigning an element in a vector to a scalar, the index used to access the vector must be a scalar. For example, in an assignment operation a = b[c], where a is a scalar and b is a vector, the index c must be a scalar.

Solutions

Ensure that when assigning an element in a vector to a scalar, the index is a scalar.