}
}
}
+ if (prop.initializer != null && prop.initializer is Literal) {
+ buffer.append_printf (" default-value=\"%s\"", literal_expression_to_value_string (prop.initializer));
+ }
write_symbol_attributes (prop);
buffer.append_printf (">\n");
indent++;
</parameter>
</parameters>
</virtual-method>
- <property name="some-property" writable="1" construct="1">
+ <property name="some-property" writable="1" construct="1" default-value="foo">
<type name="utf8" c:type="gchar*"/>
</property>
<method name="get_some_property" c:identifier="gir_test_object_test_get_some_property">
<type name="none" c:type="void"/>
</return-value>
</function>
- <property name="property" writable="1" construct="1">
+ <property name="property" writable="1" construct="1" default-value="23">
<type name="gint" c:type="gint"/>
</property>
<method name="get_property" c:identifier="gir_test_interface_test_get_property">
}
public interface InterfaceTest : Object {
- public abstract int property { get; construct set; }
+ public abstract int property { get; construct set; default = 23; }
internal abstract string internal_property { get; set; }
public virtual void int8_in (int8 param) {
}
public string? nullable_field;
- public string some_property { get; construct set; }
+ public string some_property { get; construct set; default = "foo"; }
public string write_only_property { set; }