class TestScope1 constructor() { var scope: Int = 100 fun scopeTest1(): Int { val scope: Int = 200 return scope } } fun main() { val tScope1: TestScope1 = TestScope1() println(tScope1.scopeTest1()) }