Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Stripping default nil values for nullable blocks #19

Closed
lvsti opened this issue Oct 2, 2018 · 0 comments
Closed

Stripping default nil values for nullable blocks #19

lvsti opened this issue Oct 2, 2018 · 0 comments
Labels
bug Something isn't working

Comments

@lvsti
Copy link
Owner

lvsti commented Oct 2, 2018

With the Xcode 10 toolchain (maybe previously as well but I just found out now), functions that take a nullable block parameter will appear with a nil default value in the generated interface, even if the declaration was part of a protocol. This is weird as in Swift protocol methods cannot define a default value. Moreover, Sourcery/SourceKit fails to properly parse these interfaces and produces garbage type information.

So FYI, I'm planning to manually strip these = nil sequences from the generated interface but I'll make it possible to opt out with a command line flag.

@lvsti lvsti added the bug Something isn't working label Oct 2, 2018
@lvsti lvsti closed this as completed Oct 4, 2018
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant