Don't allow modifications of temporary struct values
Submitted by Aaron Andersen
Link to original bug (#621787)
Description
public struct Vector3 {
public float x;
public float y;
public float z;
}
public class Foo {
public Vector3 position {
get;
set;
}
public Foo () {
}
}
int main (string[] args) {
var f = new Foo ();
// both of these compile fine in vala,
// but generate c code which will not compile
f.position.x++;
f.position.x = 10.0f;
return 0;
}
Version: 0.35.x
Edited by Rico Tzschichholz