Skip to content
This repository was archived by the owner on Feb 15, 2026. It is now read-only.

Comments

Unify methods#122

Merged
docelic merged 2 commits intoPapierkorb:masterfrom
f-fr:unify-methods
Nov 18, 2021
Merged

Unify methods#122
docelic merged 2 commits intoPapierkorb:masterfrom
f-fr:unify-methods

Conversation

@f-fr
Copy link
Contributor

@f-fr f-fr commented Nov 18, 2021

This fixes issue 48 of qt5.cr.

The implementation addresses the problem described in this bug report. The argument lists of inherited virtual methods are unified so that possible missing default argument (or nilability) is preserved through inheritance. This ensures that the types do not differ by nilability in derived classes (which is forbidden in Crystal).

@docelic
Copy link
Collaborator

docelic commented Nov 18, 2021

Awesome!

@docelic docelic merged commit b9a5069 into Papierkorb:master Nov 18, 2021
@f-fr f-fr deleted the unify-methods branch November 19, 2021 08:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Crystal 1.2 issue

2 participants