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

Doesn't work with struct methods #5

Open
rodionovd opened this issue Jul 1, 2014 · 0 comments
Open

Doesn't work with struct methods #5

rodionovd opened this issue Jul 1, 2014 · 0 comments
Assignees
Labels

Comments

@rodionovd
Copy link
Owner

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.

@rodionovd rodionovd added the bug label Jul 1, 2014
@rodionovd rodionovd self-assigned this Jul 1, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant