File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -19,14 +19,16 @@ WatchKitTests.test("WKInterfaceController/reloadRootControllers(_:)") {
19
19
20
20
// This is a very weak test, but we can't do better without spawning a GUI app.
21
21
WatchKitTests . test ( " WKInterfaceController/presentController(_:) " ) {
22
- var curried = WKInterfaceController . presentController
22
+ let curried = WKInterfaceController . presentController ( _ : )
23
23
typealias ExpectedType =
24
24
( WKInterfaceController ) -> ( [ ( name: String , context: AnyObject ) ] ) -> Void
25
25
let checkType : ExpectedType = curried
26
26
_blackHole ( checkType)
27
27
28
28
// FIXME: can't write the following line: rdar://20985062
29
29
// expectType(ExpectedType.self, &curried)
30
+
31
+ let curried2 = WKInterfaceController . presentController as ExpectedType
30
32
}
31
33
32
34
} // #available(iOS 8.2, *)
You can’t perform that action at this time.
0 commit comments