mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
The lookupDirect means that we can see type declarations nested inside of a protocol. If we do not filter these invalid declarations, we will offer a bogus fixit on top of a cycle diagnostic. Remove these types from consideration entirely so we don't crash and don't offer bogus fixits. Resolves rdar://57003317
10 lines
186 B
Swift
10 lines
186 B
Swift
// RUN: not %target-swift-frontend -typecheck %s
|
|
|
|
protocol Iteratee {
|
|
associatedtype Iterator
|
|
}
|
|
|
|
protocol BidirectionalAdvancingCollection: Iteratee {
|
|
struct Iterator<Elements> {}
|
|
}
|