Files
swift-mirror/test/DebugInfo/retroactive_conformance_witness_thunk.swift
2022-08-21 03:00:44 +03:00

26 lines
578 B
Swift

// RUN: %target-swift-frontend -emit-ir -g -primary-file %s
// https://github.com/apple/swift/issues/56409
public struct PowerCollection<C : Collection> : Collection {
public typealias Index = [C.Index]
public typealias Element = [C.Element]
public var startIndex, endIndex: Index
public subscript(position: Index) -> [C.Element] {
return []
}
public func index(after i: Index) -> Index {
return i
}
}
extension Array : Comparable where Element : Comparable {
public static func < (lhs: [Element], rhs: [Element]) -> Bool {
return false
}
}