// RUN: not %target-swift-frontend -typecheck %s class Graph: Collection { typealias Iterator = AnyIterator typealias Index = Int }