How to create an instance of anonymous interface in Kotlin?
<p>I have a third party Java library which an object with interface like this:</p>

<pre><code>public interface Handler&lt;C&gt; {
  void call(C context) throws Exception;
}
</code></pre>

<p>How can I concisely implement it in Kotlin similar to Java anonymous class like this:</p>

<pre><code>Handler&lt;MyContext&gt; handler = new Handler&lt;MyContext&gt; {
   @Override
   public void call(MyContext context) throws Exception {
      System.out.println("Hello world");
   }
}

handler.call(myContext) // Prints "Hello world"
</code></pre>