title: access outer scoped local variable in anonymous class having same variable name
body: <p>A local variable is declared in a function. Function also have an anonymous class after that variable declaration. Anonymous class has one own function with a parameter having same name as the outer scoped local variable. There's no compiler error due to same names. And I am unable to refer to the outer scoped local variable from anonymous class' function as it's referring to own variable.</p>
  <p>How to access the outer <code>token</code> variable in anonymous class?</p>
  <pre><code>fun function() : String {
  
      lateinit var token : String // outer
  
      accSvc.signUp(&quot;phone&quot;,&quot;email&quot;,object:AccountService.SignUpCallback {
  
          override fun onSignedUp(token: String /*inner*/) {
              //how to access outer 'token' here (assign inner 'token' to outer 'token') ??
              token /*outer*/ = token /*inner*/ //error on this line
          }
  
          override fun onSignUpFailed(error: String) {
  
          }
  
      })
      return token
  }
  </code></pre>