Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

[NSFileCoordinator coordinateWritingItemAtURL:options:error:byAccessor:] #22

Open
nickasd opened this issue Mar 2, 2019 · 1 comment

Comments

@nickasd
Copy link

nickasd commented Mar 2, 2019

The generated code generates two errors: Value of optional type 'URL?' must be unwrapped to a value of type 'URL' and after correcting that one Cannot convert value of type 'Error?' to expected argument type 'NSError?'.
http://swiftify.me/pgqw8n

@tomattoz
Copy link
Collaborator

Value of optional type 'URL?' must be unwrapped to a value of type 'URL'
This caused by the same name of variable and argument newURL.
See fixed example: http://swiftify.me/128oqm.
Anyway I've created a bug: https://swiftify.atlassian.net/browse/SWC-1042.

Cannot convert value of type 'Error?' to expected argument type 'NSError?'
The same as in #21.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants