Former icon indicating copy to clipboard operation
Former copied to clipboard

compiler failure for xCode 10

Open vinsent opened this issue 6 years ago • 6 comments

` public subscript(range: CountableRange<Int>) -> [SectionFormer] { return Array<SectionFormer>(sectionFormers[range]) }

public subscript(range: CountableClosedRange<Int>) -> [SectionFormer] {
    return Array<SectionFormer>(sectionFormers[range])
}`

I clone this project, than compiler by xCode 10, errored for this two function: Invalid redeclaration of 'subscript'

how I resolve this? for help

vinsent avatar Sep 19 '18 08:09 vinsent

in xCode 9.4.1, CountableRange<Bound> is seperate struct, but in xCode 10 this is a typealias of Range<Bound>

public typealias CountableRange<Bound> = Range<Bound>

please resolve this.

vinsent avatar Sep 19 '18 08:09 vinsent

Can report same problem

matuskopo avatar Sep 20 '18 12:09 matuskopo

Same here. If anyone can help how to fix. Thanks

lmaix avatar Sep 20 '18 13:09 lmaix

same here.

raulastu avatar Sep 21 '18 02:09 raulastu

+1 Same over here, please need to release important version to store :-(

Daxito avatar Sep 23 '18 14:09 Daxito

hint: replace all occurrences of "UILayoutPriority(rawValue: 500)" with "UILayoutPriority.init(500)" and remove the 2 "Invalid redeclaration of 'subscript'" functions below the first. it compiles for me.

datayeah avatar Sep 26 '18 13:09 datayeah