Adedd quickfix check if @PublishedApi stub already exists
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
// "Replace with generated @PublishedApi bridge call '`access$test`(...)'" "true"
|
||||
|
||||
open class ABase {
|
||||
protected fun test(p: Int) {
|
||||
}
|
||||
|
||||
|
||||
inline fun test() {
|
||||
{
|
||||
<caret>test(1)
|
||||
}()
|
||||
}
|
||||
|
||||
@PublishedApi
|
||||
internal fun `access$test`(p: Int) = test(p)
|
||||
}
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
// "Replace with generated @PublishedApi bridge call '`access$test`(...)'" "true"
|
||||
|
||||
open class ABase {
|
||||
protected fun test(p: Int) {
|
||||
}
|
||||
|
||||
|
||||
inline fun test() {
|
||||
{
|
||||
`access$test`(1)
|
||||
}()
|
||||
}
|
||||
|
||||
@PublishedApi
|
||||
internal fun `access$test`(p: Int) = test(p)
|
||||
}
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
// "Replace with generated @PublishedApi bridge call '`access$prop`'" "true"
|
||||
|
||||
open class ABase {
|
||||
protected var prop = 1
|
||||
|
||||
inline fun test() {
|
||||
{
|
||||
<caret>prop
|
||||
}()
|
||||
}
|
||||
|
||||
@PublishedApi
|
||||
internal var `access$prop`: Int
|
||||
get() = prop
|
||||
set(value) {
|
||||
prop = value
|
||||
}
|
||||
}
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
// "Replace with generated @PublishedApi bridge call '`access$prop`'" "true"
|
||||
|
||||
open class ABase {
|
||||
protected var prop = 1
|
||||
|
||||
inline fun test() {
|
||||
{
|
||||
`access$prop`
|
||||
}()
|
||||
}
|
||||
|
||||
@PublishedApi
|
||||
internal var `access$prop`: Int
|
||||
get() = prop
|
||||
set(value) {
|
||||
prop = value
|
||||
}
|
||||
}
|
||||
@@ -5,7 +5,7 @@ open class ABase {
|
||||
@Z
|
||||
protected var String.prop: Int
|
||||
get() = 1
|
||||
set(field) = {}
|
||||
set(field) {}
|
||||
|
||||
|
||||
inline fun test() {
|
||||
|
||||
+2
-2
@@ -1,11 +1,11 @@
|
||||
// "Replace with generated @PublishedApi bridge call '`access$test`(...)'" "true"
|
||||
// "Replace with generated @PublishedApi bridge call '`access$prop`'" "true"
|
||||
annotation class Z
|
||||
|
||||
open class ABase {
|
||||
@Z
|
||||
protected var String.prop: Int
|
||||
get() = 1
|
||||
set(field) = {}
|
||||
set(field) {}
|
||||
|
||||
|
||||
inline fun test() {
|
||||
|
||||
Reference in New Issue
Block a user