Skip to content

Commit 4b374cd

Browse files
authored
Merge pull request #74400 from kavon/rdar125659789-nfcs
NFC: simplify test and add assertion
2 parents 6ca531c + e4ed330 commit 4b374cd

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

lib/AST/Decl.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1827,6 +1827,7 @@ bool ExtensionDecl::isWrittenWithConstraints() const {
18271827
// If the type has no inverse requirements, there are no extra constraints
18281828
// to write.
18291829
if (typeInverseReqs.empty()) {
1830+
assert(extInverseReqs.empty() && "extension retroactively added inverse?");
18301831
return false;
18311832
}
18321833

validation-test/execution/issue-72719.swift renamed to validation-test/IRGen/issue-72719.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
// RUN: %target-swift-frontend -interpret %s
2-
// REQUIRES: executable_test
1+
// RUN: %target-swift-frontend -emit-ir -g %s > /dev/null
32

4-
// This only reproduced if you provide the -interpret flag!
53
// https://github.com/apple/swift/issues/72719
64

75
protocol D {}

0 commit comments

Comments
 (0)