Skip to content
This repository was archived by the owner on Jan 25, 2018. It is now read-only.
This repository was archived by the owner on Jan 25, 2018. It is now read-only.

Doesn't work with struct methods #5

@rodionovd

Description

@rodionovd

So the following code generates a compiler error

Error: Partial application of struct method is not allowed

var err = SwiftRoute.replace(function: String().substringFromIndex, with: {
                                        ^^^^^^^^^^^^^^^^^^^^^^^^^^
    (index : Int) -> String in
        return "routed"
})

because String is a struct, not a real class.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions