Skip to content

Instantly share code, notes, and snippets.

@oleander
Last active June 19, 2017 21:15
Show Gist options
  • Save oleander/a6202d8c2068f14ea490f00781163ea6 to your computer and use it in GitHub Desktop.
Save oleander/a6202d8c2068f14ea490f00781163ea6 to your computer and use it in GitHub Desktop.

Revisions

  1. oleander created this gist Jun 19, 2017.
    8 changes: 8 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    main.swift:55:7: error: ambiguous reference to member 'init'
    self.init(x)
    ^~~~
    Swift.Array<Element>:49:12: note: found this candidate
    public init<S>(_ s: S) where S : Sequence, S.Iterator.Element == Element
    ^
    Swift.RangeReplaceableCollection:22:24: note: found this candidate
    public convenience init<S>(_ elements: S) where S : Sequence, S.Iterator.Element == Self.Iterator.Element