Skip to content

Commit 5f04b8c

Browse files
committed
[test] Speculative fix for failing WatchKit test.
1 parent ab8253c commit 5f04b8c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

validation-test/stdlib/WatchKit.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,16 @@ WatchKitTests.test("WKInterfaceController/reloadRootControllers(_:)") {
1919

2020
// This is a very weak test, but we can't do better without spawning a GUI app.
2121
WatchKitTests.test("WKInterfaceController/presentController(_:)") {
22-
var curried = WKInterfaceController.presentController
22+
let curried = WKInterfaceController.presentController(_:)
2323
typealias ExpectedType =
2424
(WKInterfaceController) -> ([(name: String, context: AnyObject)]) -> Void
2525
let checkType: ExpectedType = curried
2626
_blackHole(checkType)
2727

2828
// FIXME: can't write the following line: rdar://20985062
2929
// expectType(ExpectedType.self, &curried)
30+
31+
let curried2 = WKInterfaceController.presentController as ExpectedType
3032
}
3133

3234
} // #available(iOS 8.2, *)

0 commit comments

Comments
 (0)