mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Add testcase for fixed circular reference issue: rdar://89921930
This commit is contained in:
16
test/Generics/rdar89921930.swift
Normal file
16
test/Generics/rdar89921930.swift
Normal file
@@ -0,0 +1,16 @@
|
||||
// RUN: %target-swift-frontend -typecheck -verify %s
|
||||
|
||||
// This used to hit a circularity.
|
||||
|
||||
public protocol P {}
|
||||
|
||||
public struct G<T : P> {}
|
||||
|
||||
public typealias A<T : P> = G<T>
|
||||
|
||||
public protocol Circle {
|
||||
associatedtype X : P
|
||||
associatedtype Y where Y == A<X>
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user