FlatLang / Flat

(Deprecated) Soon-to-be legacy Flat compiler all in one
6 stars 0 forks source link

Update immutable modifier to check extended classes for field modification #348

Open BSteffaniak opened 7 years ago

BSteffaniak commented 7 years ago

And if so, require an override of the function that contains the modification.

e.g. Array.add updates the count of the array, and since ImmutableArray extends Array, you need to override the add function to disable that modification.