"has_target" is a ccode-attribute-based property, so don't explicitly set
it and rely on attribute-list-copy. Otherwise there will a fatal duplicated
CCode attribute.
gir/bug667751.test \
gir/bug742012.test \
gir/array-fixed-length.test \
+ gir/delegate-alias-without-target.test \
annotations/deprecated.vala \
annotations/description.vala \
annotations/noaccessormethod.test \
--- /dev/null
+GIR
+
+Input:
+
+<alias name="Foo" c:type="TestFoo">
+ <type name="Bar" c:type="TestBar"/>
+</alias>
+
+<callback name="Bar" c:type="TestBar">
+ <return-value transfer-ownership="none">
+ <type name="none" c:type="void"/>
+ </return-value>
+</callback>
+
+Output:
+
+[CCode (cheader_filename = "test.h", has_target = false)]
+public delegate void Bar ();
+[CCode (cheader_filename = "test.h", has_target = false)]
+public delegate void Foo ();
var deleg = new Delegate (alias.name, orig.return_type.copy (), alias.source_reference);
deleg.access = orig.access;
- deleg.has_target = orig.has_target;
foreach (var param in orig.get_parameters ()) {
deleg.add_parameter (param.copy ());