Array concatenation not supported for public variables
Submitted by Fabian Deutsch
Link to original bug (#616930)
Description
The problem arises when using the += operator with arrays.
Works: struct Foo { Foo[] foos; }
void main(string[] args) { Foo f = Foo(); f.foos = new Foo[0]; f.foos += Foo(); }
Does NOT work: public struct Foo { Foo[] foos; }
void main(string[] args) { Foo f = Foo(); f.foos = new Foo[0]; f.foos += Foo(); }