title: kotlin: "unresolved reference" in sceondary constructor
body: <p>i am very new to kotlin, and maybe this might be a silly question but why using a variable defined in a secondary parameter gives an error of "unresolved reference" when i try to print it while the same does not happen in case of primary constructor</p>
  
  <pre><code>fun main(args: Array&lt;String&gt;){    
      var stud= Student("Yash", 10)    
  }
  
  class Student(name: String) {
      init {
          println("name is $name")
      }
  
      constructor(n: String, Id: Int): this(n) {
         println("name is $n")
         println("id is $id")
      }
  }
  </code></pre>