File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed
validation-test/compiler_crashers_2_fixed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -4102,6 +4102,10 @@ ConstraintResult GenericSignatureBuilder::expandConformanceRequirement(
4102
4102
auto type = dyn_cast<TypeDecl>(found);
4103
4103
if (!type || isa<AssociatedTypeDecl>(type)) continue ;
4104
4104
4105
+ // Ignore nominal types. They're always invalid declarations.
4106
+ if (isa<NominalTypeDecl>(type))
4107
+ continue ;
4108
+
4105
4109
// ... from the same module as the protocol.
4106
4110
if (type->getModuleContext () != proto->getModuleContext ()) continue ;
4107
4111
Original file line number Diff line number Diff line change
1
+ // RUN: not %target-swift-frontend -typecheck %s
2
+
3
+ protocol Iteratee {
4
+ associatedtype Iterator
5
+ }
6
+
7
+ protocol BidirectionalAdvancingCollection: Iteratee {
8
+ struct Iterator < Elements> { }
9
+ }
You can’t perform that action at this time.
0 commit comments