title: I have a problem after Java to Kotlin conversion with the error in Android Studio, Cannot infer a type for this parameter
body: <p>As I converted this method in Java:</p>
  
  <pre><code>private void enqueueDownloads() {
      final List&lt;Request&gt; requests = Data.getFetchRequestWithGroupId(GROUP_ID);
      fetch.enqueue(requests, updatedRequests -&gt; {
  
      }, error -&gt; Timber.d("DownloadListActivity Error: %1$s", error.toString()));
  
  }
  </code></pre>
  
  <p>It led to this method which has a lot of errors:</p>
  
  <pre><code>private fun enqueueDownloads() {
      val requests = Data.getFetchRequestWithGroupId(GROUP_ID)
      fetch.enqueue(requests, { updatedRequests -&gt;
  
      }, { error -&gt; Timber.d("DownloadListActivity Error: %1\$s", error.toString()) })
  
  }
  </code></pre>
  
  <p>This method in Kotlin has a lot of errors at the method <code>fetch.enqueue</code> where the value <code>updatedRequests</code>and <code>error</code> it says <code>Cannot infer a type for this parameter</code>.</p>
  
  <p>So I hit hover on the method and hit <code>Ctrl+B</code> and the method declaration in the library is:</p>
  
  <pre><code>fun enqueue(requests: List&lt;Request&gt;, func: Func&lt;List&lt;Request&gt;&gt;? = null, func2: Func&lt;Error&gt;? = null): Fetch
  
  /** Pause a queued or downloading download.
   * @param ids ids of downloads to be paused.
   * @param func Callback the paused downloads will be returned on. Note. Only downloads that
   * were paused will be returned in the result list.
   * @param func2 Callback that is called when attempting to pause downloads fail. An error is returned.
   * @throws FetchException if this instance of Fetch has been closed.
   * @return Instance
   * */
  </code></pre>
  
  <p>The problem has something to do with CallBack based on the method documentation but I can not get it to work! How can I make it fully Kotlin and call it in Kotlin?.</p>
  
  <p>The library is <a href="https://github.com/tonyofrancis/Fetch" rel="nofollow noreferrer">Fetch2</a> and written in Kotlin. Also I can not see whole code for the methods in the library. </p>