Skip to content

Commit 264d241

Browse files
kavonmeg-gupta
authored andcommitted
NFC: simplify test and add assertion
This is a follow-up to clean-up swiftlang#74372
1 parent 52c6807 commit 264d241

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)