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

Declarations in extensions cannot override yet - Swift 4 #47

Open
lusabo opened this issue Sep 27, 2017 · 4 comments
Open

Declarations in extensions cannot override yet - Swift 4 #47

lusabo opened this issue Sep 27, 2017 · 4 comments

Comments

@lusabo
Copy link

lusabo commented Sep 27, 2017

When I tried to migrate my app to use Xcode 9 + Swift 4 I received the error Declarations in extensions cannot override yet in the files: Box.swift, Formatter.swift and Foundation.swift.

Example:

In the file Box.swift in the code below occurs the error in the line: open override var mustacheBox: MustacheBox {.

/// GRMustache provides built-in support for rendering `NSNull`.
extension NSNull {
   
   open override var mustacheBox: MustacheBox {
        return MustacheBox(
            value: self,
            boolValue: false,
            render: { (info: RenderingInfo) in return Rendering("") })
    }
}

How to solve?

Thanks,
Luciano

@lusabo
Copy link
Author

lusabo commented Sep 27, 2017

I create a blank project and install the GRMustache and continuous giving the error Declarations in extensions cannot override yet

@lusabo lusabo closed this as completed Sep 27, 2017
@lusabo lusabo reopened this Sep 28, 2017
@hamedmohammadi
Copy link

you can go in pod project select GRMustache and change compiling swift to swift3.4 and everything work .
this project need to support swift 4 but doesn't yet

@EMart86
Copy link

EMart86 commented Feb 2, 2018

I've seen a PR with swift4 compatibility has been merged 28 days ago. Any chance that this is merged on master and pushed as pod soon?

@yurkins
Copy link

yurkins commented Mar 13, 2018

same issue :(

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

4 participants