Annotate constructor that returns a base type

Review Request #3834 — Created Feb. 14, 2025 and submitted

Information

birb/birb
default

Reviewers

In that case, annotating the actual type will help bindings use the correct type.

Compared the gir before and after, and confirmed that the type was changed:

--- Birb-1.0.gir    2025-02-14 01:51:51.510647952 -0500
+++ build/birb/Birb-1.0.gir 2025-02-14 01:51:57.782682982 -0500
@@ -644,7 +644,7 @@
           <doc xml:space="preserve"
                filename="birb/birbqueuedoutputstream.h"
                line="92">The new stream.</doc>
-          <type name="Gio.OutputStream" c:type="GOutputStream*"/>
+          <type name="QueuedOutputStream" c:type="GOutputStream*"/>
         </return-value>
         <parameters>
           <parameter name="base_stream" transfer-ownership="none">
Summary ID
Annotate constructors that return base types
In that case, annotating the actual type will help bindings use the correct type.
471ddef89a265210c6dbeba4e9e7d3d8e2e594ee
grim
  1. Nice work, thanks!!

  2. 
      
grim
Review request changed
Status:
Completed