Skip to main content

Non-Object Inner Type

This error occurs when the inner type of an iterable variable is not an object type, preventing field access or object destructuring.

Erroneous Code Example

In this example, the numbers variable contains primitives, not objects, so field access is not allowed.

Solution

Ensure iterable contains object types for field access.