GRMustache.swift icon indicating copy to clipboard operation
GRMustache.swift copied to clipboard

Declarations in extensions cannot override yet - Swift 4

Open lusabo opened this issue 8 years ago • 4 comments

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 avatar Sep 27 '17 14:09 lusabo

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

lusabo avatar Sep 27 '17 18:09 lusabo

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

habibmohammadidev avatar Nov 21 '17 07:11 habibmohammadidev

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?

EMart86 avatar Feb 02 '18 12:02 EMart86

same issue :(

yurkins avatar Mar 13 '18 14:03 yurkins