Files
swift-mirror/validation-test/compiler_crashers_2_fixed/0180-sr9022.swift
Slava Pestov add4185b83 AST: Fix infinite recursion with recursive same-type constraints
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>.
2018-10-28 23:30:19 -04:00

7 lines
143 B
Swift

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