https://kotlinlang.org logo
b

benleggiero

07/30/2017, 4:58 PM
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