Support properties in @PublishedApi bridge quickfix

This commit is contained in:
Mikhael Bogdanov
2016-12-19 16:13:04 +01:00
parent 6ca1d47207
commit c38b55612b
12 changed files with 182 additions and 40 deletions
@@ -0,0 +1,23 @@
// "Replace with generated @PublishedApi bridge call '`access$test`(...)'" "true"
annotation class Z
open class ABase {
@Z
protected var String.prop: Int
get() = 1
set(field) = {}
inline fun test() {
{
"123".`access$prop`
}()
}
@PublishedApi
internal var String.`access$prop`: Int
get() = prop
set(value) {
prop = value
}
}