mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
12 lines
279 B
Swift
12 lines
279 B
Swift
// RUN: %target-swift-frontend -emit-ir %s -disable-availability-checking
|
|
|
|
// https://github.com/apple/swift/issues/56782
|
|
|
|
public struct MyList: Sequence {
|
|
var _list: [(Int, Int)]
|
|
|
|
public func makeIterator() -> some IteratorProtocol {
|
|
return _list.makeIterator()
|
|
}
|
|
}
|