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

Invalid redeclaration of 'uncheckedRandom(in:using:) #54

Open
hufkens opened this issue Apr 26, 2018 · 3 comments
Open

Invalid redeclaration of 'uncheckedRandom(in:using:) #54

hufkens opened this issue Apr 26, 2018 · 3 comments

Comments

@hufkens
Copy link

hufkens commented Apr 26, 2018

When using the latest Xcode (9.3) I get this error:

RandomKit/Sources/RandomKit/Extensions/Swift/Collection+RandomKit.swift:84:17:` Invalid redeclaration of 'uncheckedRandom(in:using:)

in:

extension RandomRetrievableInRange where Self: Collection, Self.Index: RandomInRange, Self.IndexDistance: RandomToValue {

    /// Returns a random element in range without checking whether self or range is empty.
    public func uncheckedRandom<R: RandomGenerator>(in range: Range<Index>, using randomGenerator: inout R) -> Iterator.Element {
        return self[Index.uncheckedRandom(in: range, using: &randomGenerator)]
    }

}
@vbklv
Copy link

vbklv commented Apr 26, 2018

Issue blocking working with Xcode 9.3 and iOS 11.3

@Gerzer
Copy link

Gerzer commented May 6, 2018

I'm having this issue, too, with Xcode 9.4, building for the latest macOS High Sierra.

@sergeydi
Copy link

I have the same issue in Linux

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