title: only classes are allowed on the left hand side of a class literal
body: <p>I know a lot of similar questions here in StackOverflow, but nothing solved mine.</p>
  
  <p>I have a generic data class:</p>
  
  <pre><code>  data class ServiceCall&lt;out T&gt;(val result: T?, val exception: String?, val pagination: String?, val stringResult: String?)
  </code></pre>
  
  <p>I am trying to use like this:</p>
  
  <pre><code>Gson().fromJson(json, ServiceCall&lt;SurveyListModel&gt;::class.java).result
  </code></pre>
  
  <p>IDE shows error: <strong>only classes are allowed on the left hand side of a class literal</strong></p>
  
  <p>How to solve this? Thanks in advance.</p>