coffeescript-eclipse icon indicating copy to clipboard operation
coffeescript-eclipse copied to clipboard

Highlighted syntax error when assigning to arrays

Open clockworkgeek opened this issue 13 years ago • 1 comments

To begin with, array-assignment appears Ok.

a = []
a[i] = x

But if an array is a property of some other object then it is red-underlined with the tooltip "no viable alternative at input '='".

@a[i] = x
this.a[i] = x
any.nested.array[i] = x
this[i] = x

The last of those also causes an error even though it is valid, it is probably the same rule which legitimately highlights these bad statements.

null[i] = x
undefined[i] = x

clockworkgeek avatar Oct 04 '12 13:10 clockworkgeek

Deeply nested properties are known to be unsupported, see the readme here. It is not clear if adamschmideg is planning to address that.

giacecco avatar Nov 10 '12 12:11 giacecco