Variables shadowing in Kotlin for inner classes: how variables are resolved?

前端 未结 0 633
一生所求
一生所求 2020-12-29 20:58

I have the following code snippet in Kotlin. I love such code puzzlers, but the result here was too unexpected for me. Can someone describe me why it prints 1 a

相关标签:
回答
  • 消灭零回复
提交回复
热议问题