Skip to content

Commit

Permalink
Merge pull request swiftlang#11451 from CodaFi/in-glome-we-trust
Browse files Browse the repository at this point in the history
Turn on circularity checks for ProtocolCompositions
  • Loading branch information
CodaFi authored Aug 14, 2017
2 parents 31943cb + f479f27 commit 76f9c3e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Sema/TypeCheckType.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2927,7 +2927,7 @@ Type TypeResolver::resolveCompositionType(CompositionTypeRepr *repr,
};

for (auto tyR : repr->getTypes()) {
Type ty = TC.resolveType(tyR, DC, withoutContext(options), Resolver);
Type ty = resolveType(tyR, withoutContext(options));
if (!ty || ty->hasError()) return ty;

auto nominalDecl = ty->getAnyNominal();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
// See https://swift.org/LICENSE.txt for license information
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors

// RUN: not --crash %target-swift-frontend %s -emit-ir
// RUN: not %target-swift-frontend %s -emit-ir
class A:a:a{}typealias a:A.a
& Ms

0 comments on commit 76f9c3e

Please sign in to comment.