@@ -394,22 +394,22 @@ public func reflect<T: Error>(error: T) {
394394
395395/// Wraps a thick function with arity 0.
396396struct ThickFunction0 {
397- var function : ( ) -> ( )
397+ var function : ( ) -> Void
398398}
399399
400400/// Wraps a thick function with arity 1.
401401struct ThickFunction1 {
402- var function : ( Int ) -> ( )
402+ var function : ( Int ) -> Void
403403}
404404
405405/// Wraps a thick function with arity 2.
406406struct ThickFunction2 {
407- var function : ( Int , String ) -> ( )
407+ var function : ( Int , String ) -> Void
408408}
409409
410410/// Wraps a thick function with arity 3.
411411struct ThickFunction3 {
412- var function : ( Int , String , AnyObject ? ) -> ( )
412+ var function : ( Int , String , AnyObject ? ) -> Void
413413}
414414
415415struct ThickFunctionParts {
@@ -419,7 +419,7 @@ struct ThickFunctionParts {
419419
420420/// Reflect a closure context. The given function must be a Swift-native
421421/// @convention(thick) function value.
422- public func reflect( function: @escaping ( ) -> ( ) ) {
422+ public func reflect( function: @escaping ( ) -> Void ) {
423423 let fn = UnsafeMutablePointer< ThickFunction0> . allocate(
424424 capacity: MemoryLayout< ThickFunction0> . size)
425425 fn. initialize ( to: ThickFunction0 ( function: function) )
@@ -434,7 +434,7 @@ public func reflect(function: @escaping () -> ()) {
434434
435435/// Reflect a closure context. The given function must be a Swift-native
436436/// @convention(thick) function value.
437- public func reflect( function: @escaping ( Int ) -> ( ) ) {
437+ public func reflect( function: @escaping ( Int ) -> Void ) {
438438 let fn =
439439 UnsafeMutablePointer< ThickFunction1> . allocate(
440440 capacity: MemoryLayout< ThickFunction1> . size)
@@ -450,7 +450,7 @@ public func reflect(function: @escaping (Int) -> ()) {
450450
451451/// Reflect a closure context. The given function must be a Swift-native
452452/// @convention(thick) function value.
453- public func reflect( function: @escaping ( Int , String ) -> ( ) ) {
453+ public func reflect( function: @escaping ( Int , String ) -> Void ) {
454454 let fn = UnsafeMutablePointer< ThickFunction2> . allocate(
455455 capacity: MemoryLayout< ThickFunction2> . size)
456456 fn. initialize ( to: ThickFunction2 ( function: function) )
@@ -465,7 +465,7 @@ public func reflect(function: @escaping (Int, String) -> ()) {
465465
466466/// Reflect a closure context. The given function must be a Swift-native
467467/// @convention(thick) function value.
468- public func reflect( function: @escaping ( Int , String , AnyObject ? ) -> ( ) ) {
468+ public func reflect( function: @escaping ( Int , String , AnyObject ? ) -> Void ) {
469469 let fn = UnsafeMutablePointer< ThickFunction3> . allocate(
470470 capacity: MemoryLayout< ThickFunction3> . size)
471471 fn. initialize ( to: ThickFunction3 ( function: function) )
0 commit comments