title: Swift 2.0 : Cannot invoke with an argument list of type... (HTTP Request)
body: <p>Since I upgraded to Xcode 7 beta I have an error that I can't fix.
  Here's the full code from my DataManager.swift</p>
  
  <pre><code>import Foundation
  var TopAppURL:String = String()
  var numberAsked:String = String()
  
  class DataManager {
  
  
  class func getInfo(ID : String){
      TopAppURL = "http://sweetapi.com/?=\(ID)"
      numberAsked = ID
      }
  
  
  class func loadDataFromURL(url: NSURL, completion:(data: NSData?, error: NSError?) -&gt; Void) {
      var session = NSURLSession.sharedSession()
          // Use NSURLSession to get data from an NSURL
      let loadDataTask = session.dataTaskWithURL(url, completionHandler: { (data: NSData!, response: NSURLResponse!, error: NSError!) -&gt; Void in
          if let responseError = error {
              completion(data: nil, error: responseError)
          } else if let httpResponse = response as? NSHTTPURLResponse {
              if httpResponse.statusCode != 200 {
                  var statusError = NSError(domain:"com.raywenderlich", code:httpResponse.statusCode, userInfo:[NSLocalizedDescriptionKey : "HTTP status code has unexpected value."])
                  completion(data: nil, error: statusError)
              } else {
                  completion(data: data, error: nil)
              }
          }
      })
  
      loadDataTask.resume()
  }
  
  class func getDataFromSweetApiOk(success: ((IDdata: NSData!) -&gt; Void)) {
      //1
      print("DataManager loads \(TopAppURL)")
      loadDataFromURL(NSURL(string: TopAppURL)!, completion:{(data, error) -&gt; Void in
          //2
          if let urlData = data {
              //3
              success(IDdata: urlData)
          }
      })
  }
  }
  </code></pre>
  
  <p>So I got this error : "Cannot invoke 'dataTaskWithURL' with an argument list of type '(NSURL, completionHandler: (NSData!, NSURLResponse!, NSError!) -> Void)'"
  I searched everywhere how to fix this but like Swift 2.0 is very new, I didn't found any solution. </p>