benleggiero
07/30/2017, 4:58 PMprotected
fields to be visible to extension functions.
Example:
in Foo.kt:
data class Foo(protected var bar: Bar) {
var stringValue: String get() = bar.stringValue
}
in Foo Extensions.kt:
public val Foo.intValue: Int get() = bar.intValue // Today, this is a compile-time error