oh i see! i was confused because this didnt work: ...
# getting-started
p
oh i see! i was confused because this didnt work:
Copy code
class MyClass(field: String) {

    fun myFoo() {
        println(field) // field unavailable here
    }
}
👍 1