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 e29c3a9 commit d5bf5e3Copy full SHA for d5bf5e3
test/decl/protocol/req/associated_type_inference_stdlib_2.swift
@@ -0,0 +1,23 @@
1
+// RUN: %target-typecheck-verify-swift -enable-experimental-associated-type-inference
2
+// RUN: not %target-typecheck-verify-swift
3
+
4
+protocol IP {
5
+ associatedtype E
6
7
+ func next() -> E?
8
+}
9
10
+protocol S {
11
+ associatedtype I: IP
12
+ associatedtype E where E == I.E
13
14
+ func makeI() -> I
15
16
17
+struct G: S {
18
+ struct I: IP {
19
+ func next() -> Int? {}
20
+ }
21
22
+ func makeI() -> I {}
23
0 commit comments