notify_call.add_argument (get_property_canonical_cconstant (prop));
var get_accessor = prop.get_accessor;
- if (get_accessor != null) {
+ if (get_accessor != null && get_accessor.automatic_body) {
var property_type = prop.property_type;
var get_call = new CCodeFunctionCall (new CCodeIdentifier (get_ccode_real_name (get_accessor)));
get_call.add_argument (new CCodeIdentifier (is_virtual ? "base" : "self"));
objects/bug779038-2.test \
objects/bug779038-3.test \
objects/bug779219.vala \
+ objects/bug779955.vala \
errors/errors.vala \
errors/bug567181.vala \
errors/bug579101.vala \
--- /dev/null
+public class Foo : Object {
+ int i = 42;
+
+ public int bar {
+ get {
+ return i;
+ }
+ set {
+ if (value == 42) {
+ i = 23;
+ }
+ }
+ }
+}
+
+void main () {
+ var f = new Foo ();
+ f.bar = 42;
+ assert (f.bar == 23);
+}