Skip to content

Commit 7d726f2

Browse files
committed
Fixed smal bug with how expression was called
1 parent f329b3b commit 7d726f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/SDK/XCTest/XCTest.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1038,7 +1038,7 @@ public func XCTAssertNoThrow<T>(_ expression: @autoclosure () throws -> T, _ mes
10381038

10391039
let result = _XCTRunThrowableBlock {
10401040
do {
1041-
_ = try expression
1041+
_ = try expression()
10421042
} catch {
10431043
caughtErrorOptional = error
10441044
}

0 commit comments

Comments
 (0)