Files
swift-mirror/validation-test/compiler_crashers_2_fixed/0104-sr4388.swift
2017-06-02 20:43:27 -07:00

12 lines
273 B
Swift

// RUN: %target-swift-frontend %s -emit-ir
class IndexPath {
init(indexes: [Int]) {}
}
extension CountableRange where Bound == Int {
func indexPaths(inSection section: Bound) -> [IndexPath] {
return reduce([]) { $0 + [IndexPath(indexes: [section, $1])] }
}
}