Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions test/Generics/issue-85084.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// RUN: %target-typecheck-verify-swift

protocol P1 {}

protocol P2 {
associatedtype U
}

protocol P3<T> {
associatedtype T: P2
}

struct S1<T: P2>: P3 where T.U: P1 {}

extension P3 where Self == S1<T> { // expected-error {{same-type constraint 'Self' == 'S1<Self.T>' is recursive}}
static var a: S1<T> {
S1<T>()
}
}