mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
We diagnose and flag these in finalize(), but we can encounter one even earlier through resolveDependentMemberTypes(). Do the same thing there that we already do in EquivalenceClass::getTypeInContext(). Fixes <rdar://problem/45328122>, <https://bugs.swift.org/browse/SR-9022>.
7 lines
143 B
Swift
7 lines
143 B
Swift
// RUN: not %target-swift-frontend -typecheck %s
|
|
|
|
class Graph<V>: Collection {
|
|
typealias Iterator = AnyIterator<V>
|
|
typealias Index = Int
|
|
}
|