Proposal: Allow `protected` fields to be visible t...
# language-proposals
b
Proposal: Allow
protected
fields to be visible to extension functions. Example: in Foo.kt:
Copy code
data class Foo(protected var bar: Bar) {
    var stringValue: String get() = bar.stringValue
}
in Foo Extensions.kt:
Copy code
public val Foo.intValue: Int get() = bar.intValue // Today, this is a compile-time error
🙅 1