We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4998cd6 commit 0ff6614Copy full SHA for 0ff6614
test/Generics/issue-85084.swift
@@ -0,0 +1,19 @@
1
+// RUN: %target-typecheck-verify-swift
2
+
3
+protocol P1 {}
4
5
+protocol P2 {
6
+ associatedtype U
7
+}
8
9
+protocol P3<T> {
10
+ associatedtype T: P2
11
12
13
+struct S1<T: P2>: P3 where T.U: P1 {}
14
15
+extension P3 where Self == S1<T> { // expected-error {{same-type constraint 'Self' == 'S1<Self.T>' is recursive}}
16
+ static var a: S1<T> {
17
+ S1<T>()
18
+ }
19
0 commit comments