Skip to content

Commit 7d6005b

Browse files
committed
Fix test failure in 1_stdlib/Dispatch.swift for SE-0054.
Fix 1_stdlib/Dispatch.swift to work whether or not dispatch_block_create() is imported as IUO.
1 parent be029e0 commit 7d6005b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/1_stdlib/Dispatch.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ DispatchAPI.test("dispatch_block_t conversions") {
4747

4848
if #available(OSX 10.10, iOS 8.0, *) {
4949
DispatchAPI.test("dispatch_block_t identity") {
50-
let block = dispatch_block_create(DISPATCH_BLOCK_INHERIT_QOS_CLASS) {
50+
let block: dispatch_block_t = dispatch_block_create(DISPATCH_BLOCK_INHERIT_QOS_CLASS) {
5151
_ = 1
5252
}
5353

@@ -59,7 +59,7 @@ if #available(OSX 10.10, iOS 8.0, *) {
5959
DispatchAPI.test("dispatch_block_t conversions with dispatch_block_create") {
6060
var counter = 0
6161

62-
let block = dispatch_block_create(dispatch_block_flags_t(0)) {
62+
let block: dispatch_block_t = dispatch_block_create(dispatch_block_flags_t(0)) {
6363
counter += 1
6464
}
6565
block()

0 commit comments

Comments
 (0)