File tree Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -438,10 +438,12 @@ class TypeMatcher {
438
438
439
439
if (firstArgs.size () == secondArgs.size ()) {
440
440
for (unsigned i : indices (firstArgs)) {
441
- return this ->visit (CanType (firstArgs[i]),
442
- secondArgs[i],
443
- sugaredFirstType->castTo <ParameterizedProtocolType>()
444
- ->getArgs ()[i]);
441
+ if (!this ->visit (CanType (firstArgs[i]),
442
+ secondArgs[i],
443
+ sugaredFirstType->castTo <ParameterizedProtocolType>()
444
+ ->getArgs ()[i])) {
445
+ return false ;
446
+ }
445
447
}
446
448
447
449
return true ;
Original file line number Diff line number Diff line change
1
+ // RUN: %target-typecheck-verify-swift
2
+
3
+ protocol Derived < A, B> where C == any Derived < Never , B > {
4
+ associatedtype A
5
+ associatedtype B
6
+
7
+ associatedtype C
8
+ }
You can’t perform that action at this time.
0 commit comments