title: Ambiguous reference to member 'tableView(_:numberOfRowsInSection:)' Why this error?
body: <p>Here is my code in which the error appears:
  The error is in line 3 'if let indexpath...'</p>
  
  <pre><code>override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
      if segue.identifier == "show Detail" {
          if let indexPath = self.tableView.indexPathForSelectedRow {
              let taakDetail : Taak = taken[(indexPath as NSIndexPath).row]
              let controller = (segue.destination as! UINavigationController).topViewController as! DetailsViewController
              controller.selectedTaak = taakDetail
          }
      }
  </code></pre>
  
  <p>I can't find out what is ambiguous about this. The code to which it refers to is:    </p>
  
  <pre><code>func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -&gt; Int {
      return taken.count
  }
  </code></pre>