mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
AbstractionPattern::matchesTuple() is used by various assertions, and the condition was too strict. Relax the condition to fix an assertion failure in the case where an opaque result type has a tuple as its underlying type. Fixes https://bugs.swift.org/browse/SR-14426 / rdar://problem/76057095.
10 lines
231 B
Swift
10 lines
231 B
Swift
// RUN: %target-swift-frontend -emit-ir %s -disable-availability-checking
|
|
|
|
public struct MyList: Sequence {
|
|
var _list: [(Int, Int)]
|
|
|
|
public func makeIterator() -> some IteratorProtocol {
|
|
return _list.makeIterator()
|
|
}
|
|
}
|