Skip to content

Commit 71f2d8e

Browse files
committed
[test] disambiguate _internalInvariant
This test disables access controls, and it mistakenly used the Concurrency module's version of `_internalInvarant` instead of the Standard Library's version.
1 parent eb63484 commit 71f2d8e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

validation-test/stdlib/Assert.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,9 +203,9 @@ Assert.test("_internalInvariant")
203203
.crashOutputMatches("this should fail")
204204
.code {
205205
var x = 2
206-
_internalInvariant(x * 21 == 42, "should not fail")
206+
Swift._internalInvariant(x * 21 == 42, "should not fail")
207207
expectCrashLater()
208-
_internalInvariant(x == 42, "this should fail")
208+
Swift._internalInvariant(x == 42, "this should fail")
209209
}
210210

211211
Assert.test("_internalInvariantFailure")

0 commit comments

Comments
 (0)