diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2017-07-20 10:47:26 +0200 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2017-07-21 07:41:47 +0200 |
commit | d48fb32d8350abbd421658c733b74aaf44cb89ce (patch) | |
tree | 64a1f9f1b152881caab3bb1bce2c16eecf55a12a /tests/scanner/Regress-1.0-expected.gir | |
parent | 44aa990e80758ed9ad842fadc19857f26a663105 (diff) | |
download | gobject-introspection-d48fb32d8350abbd421658c733b74aaf44cb89ce.tar.gz |
regress: Test for property and method with conflicting names
This is something that libraries are not supposed to do, but some do
anyway (Soup and Clutter are two examples) and language bindings should
handle it somehow or other. In GJS we want to make sure that the way it's
handled doesn't change inadvertently, because buggy library code should
not break existing user code.
https://bugzilla.gnome.org/show_bug.cgi?id=785091
Diffstat (limited to 'tests/scanner/Regress-1.0-expected.gir')
-rw-r--r-- | tests/scanner/Regress-1.0-expected.gir | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/scanner/Regress-1.0-expected.gir b/tests/scanner/Regress-1.0-expected.gir index 7596282b..0bee81e4 100644 --- a/tests/scanner/Regress-1.0-expected.gir +++ b/tests/scanner/Regress-1.0-expected.gir @@ -3184,6 +3184,18 @@ case.</doc> </instance-parameter> </parameters> </method> + <method name="name_conflict" + c:identifier="regress_test_obj_name_conflict"> + <return-value transfer-ownership="none"> + <type name="none" c:type="void"/> + </return-value> + <parameters> + <instance-parameter name="obj" transfer-ownership="none"> + <doc xml:space="preserve">A #RegressTestObj</doc> + <type name="TestObj" c:type="RegressTestObj*"/> + </instance-parameter> + </parameters> + </method> <method name="not_nullable_element_typed_gpointer_in" c:identifier="regress_test_obj_not_nullable_element_typed_gpointer_in"> <return-value transfer-ownership="none"> @@ -3590,6 +3602,12 @@ raise an error.</doc> <type name="utf8"/> </type> </property> + <property name="name-conflict" + writable="1" + construct="1" + transfer-ownership="none"> + <type name="gint" c:type="gint"/> + </property> <property name="pptrarray" writable="1" transfer-ownership="none"> <array name="GLib.PtrArray" c:type="gpointer"> <type name="utf8"/> @@ -3633,6 +3651,9 @@ raise an error.</doc> <field name="gtype"> <type name="GType" c:type="GType"/> </field> + <field name="name_conflict"> + <type name="gint" c:type="gint"/> + </field> <field name="function_ptr"> <callback name="function_ptr"> <return-value transfer-ownership="none"> |