title: Swift 3.0 "Cannot infer type on" this var
body: <p>I have recently been updating one of my packages SwiftDDP to swift 3.0 as it has not been updated by the author as of yet. When updating it I have run into a compiler error which says "Could not infer type on onWebsocketError"</p>
  
  <pre><code>internal var onWebsocketError:(_:Error) -&gt; () = {error in log.error("websocket error \(error)")}
  </code></pre>
  
  <p>Log is declared like so</p>
  
  <pre><code>let log = XCGLogger(identifier: "DDP")
  </code></pre>
  
  <p>Error is declared in the Swift Standard library</p>
  
  <p>How would I changes onWebsocketError so that it could be inferred and why is onWebsocketError currently not working? Thanks</p>