mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
If we encounter an associated type reference within a concrete type, but haven't seen a specific protocol requirement, add the protocol conformance. Fixes rdar://problem/33139928 and another crasher.
5 lines
134 B
Swift
5 lines
134 B
Swift
// RUN: %target-swift-frontend -swift-version 4 %s -emit-ir
|
|
|
|
struct X<Elements: Sequence> { }
|
|
extension X where Elements == [Int] { }
|