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 {
438438
439439 if (firstArgs.size () == secondArgs.size ()) {
440440 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+ }
445447 }
446448
447449 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