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 f03274b commit 94796e0Copy full SHA for 94796e0
test/decl/protocol/req/associated_type_inference.swift
@@ -684,6 +684,27 @@ struct S40<E: Equatable>: P40c {
684
typealias B = Self
685
}
686
687
+protocol P41a {
688
+ associatedtype A
689
+ associatedtype B
690
+
691
+ func bar(_: B) -> A?
692
+}
693
+protocol P42b: P41a {
694
695
696
697
+ func foo(_: A, _: B)
698
699
+extension P42b {
700
+ func bar(_: B) -> A? {}
701
702
+do {
703
+ class Conformer: P42b {
704
+ func foo(_: Bool, _: String) {}
705
+ }
706
707
708
// Fails to find the fixed type witness B == FIXME_S1<A>.
709
protocol FIXME_P1a {
710
associatedtype A: Equatable = Never // expected-note {{protocol requires nested type 'A'}}
0 commit comments