Files
swift-mirror/validation-test/compiler_crashers_2_fixed/rdar57003317.swift
Robert Widmann c83c0f4cb7 Filter out invalid nested types from typealias override checking
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
2019-11-20 15:17:09 -08:00

10 lines
186 B
Swift

// RUN: not %target-swift-frontend -typecheck %s
protocol Iteratee {
associatedtype Iterator
}
protocol BidirectionalAdvancingCollection: Iteratee {
struct Iterator<Elements> {}
}