Attempting to access a field of a non-record value.

#2165   Compile-time error

Attempting to access a field of a non-record value.

Additional Information

For field 'X'.

Explanation

A non-record variable or expression was followed by a colon ':' and field name. Only record values have fields.