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.
2 parents 4fb4945 + 02ee1a3 commit 6c4d040Copy full SHA for 6c4d040
validation-test/compiler_crashers_2_fixed/issue-81712.swift
@@ -0,0 +1,20 @@
1
+// RUN: %target-typecheck-verify-swift
2
+
3
+protocol Id {
4
+ associatedtype ID
5
+}
6
7
+protocol P<Id1> {
8
+ associatedtype Id1: Id
9
+ associatedtype Id2: Id where Id2.ID == Id1.ID
10
11
+ func foo(_: Id2.ID)
12
13
14
+struct MyId: Id {
15
+ typealias ID = Int
16
17
18
+func f(id: Int, cache: any P<MyId>) {
19
+ cache.foo(id)
20
0 commit comments