You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
D doesn't allow redefining functions with different return type.
To work around this you can use
public GtkArrowType _getDirection() { ... }
alias getDirection = _getDirection; // makes getDirection calls on this type call this function
however this could lead to confusion. Manually disabling code for the function and reimplementing works, but something easier in girtod (like a command to rename functions)
ah ok thanks, I didn't see that in the readme for functions, but it's there under global - didn't think replace ctype with dtype would apply to function names as well
Example:
Gtk.Widget defines
gtk.c.types.GtkTextDirection gtk.Widget.Widget.getDirection()
Libadwaita (Adw-1.gir) defines
GtkArrowType getDirection()
girtod marks the method as override
The text was updated successfully, but these errors were encountered: