title: Call super class constructor in Kotlin, Super is not an expression
body: <p>I have two classes <code>Entity</code> and <code>Account</code>  as </p>
  
  <pre><code>abstract class Entity(
      var id: String? = null,
      var created: Date? = Date()) {
  
      constructor(entity: Entity?) : this() {
          fromEntity(entity)
      }
  
      fun fromEntity(entity: Entity?): Entity {
          id = entity?.id
          created = entity?.created
          return this;
      }
  }
  </code></pre>
  
  <p>and </p>
  
  <pre><code>data class Account( 
      var name: String? = null,
      var accountFlags: Int? = null
  ) : Entity() {
  
      constructor(entity: Entity) : this() {
          super(entity)
      }
  }
  </code></pre>
  
  <p>Which gives me the error </p>
  
  <blockquote>
    <p>Super is not an expression, it can be only used in the left-hand side of
    a dot '.'</p>
  </blockquote>
  
  <p>Why cannot I do that? </p>
  
  <p>The following will pass the compilation error, but I am not sure if it is correct.</p>
  
  <pre><code> constructor(entity: Entity) : this() {
      super.fromEntity(entity)
  }
  </code></pre>