mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Fixes the crasher in rdar://problem/20000145 and 14 other compiler crashers. Swift SVN r29973
14 lines
323 B
Swift
14 lines
323 B
Swift
// RUN: %target-parse-verify-swift
|
|
|
|
protocol SomeProtocol {
|
|
typealias T
|
|
}
|
|
|
|
extension SomeProtocol where T == Optional<T> { } // expected-error{{same-type constraint '`Self`.T' == 'Optional<`Self`.T>' is recursive}}
|
|
|
|
// rdar://problem/20000145
|
|
public protocol P {
|
|
typealias T
|
|
}
|
|
public struct S<A: P where A.T == S<A>> {}
|