title: Instantiating a generic type in Kotlin
body: <p>What's the best way to get an instance of a generic type in Kotlin? I am hoping to find the best approximation of the following C# code:</p>
  
  <pre><code>public T GetValue&lt;T&gt;() where T : new() {
      return new T();
  }
  </code></pre>