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

Cannot convert value of type '() -> ()' to specified type 'UpdateTableViewCellBlock' (aka '(UITableViewCell, IndexPath) -> ()') #19

Open
Ged2323 opened this issue Apr 7, 2017 · 1 comment

Comments

@Ged2323
Copy link

Ged2323 commented Apr 7, 2017

Hi I tried running this with swift 3.1 and I'm getting this issue on this func.

open lazy var updateTableViewCellBlock: UpdateTableViewCellBlock = {
return {
print("ERROR: You must configure the updateTableViewCellBlock")
}
}()

Cannot convert value of type '() -> ()' to specified type 'UpdateTableViewCellBlock' (aka '(UITableViewCell, IndexPath) -> ()')

Thanks in advance for your help.

Yours Sincerely
Gerard Grundy

@imclean
Copy link

imclean commented Apr 11, 2017

Just replace it with

open var updateTableViewCellBlock: UpdateTableViewCellBlock!

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