Files
swift-mirror/validation-test/compiler_crashers_2_fixed/sr14426.swift
Slava Pestov a0c215b7d2 SIL: A tuple type can be lowered with an opaque result type as the original type
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.
2021-04-13 14:46:58 -04:00

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()
}
}