Commit ae0d9206 authored by Rico Tzschichholz's avatar Rico Tzschichholz

girwriter: construct-only properties don't have a setter method

parent 6e1ecdfc
......@@ -591,7 +591,7 @@ public class Vala.GIRWriter : CodeVisitor {
buffer.append_printf ("</field>\n");
}
if (prop.set_accessor != null) {
if (prop.set_accessor != null && prop.set_accessor.writable) {
var m = prop.set_accessor.get_method ();
write_indent ();
buffer.append_printf("<field name=\"%s\">\n", m.name);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment