Quickfix for published api

This commit is contained in:
Mikhael Bogdanov
2016-12-07 12:44:48 +01:00
parent f4259c5f82
commit 5ffc0b36b0
16 changed files with 340 additions and 15 deletions
@@ -0,0 +1,15 @@
// "Replace with generated @PublishedApi bridge call '`access$test`(...)'" "true"
annotation class Z
open class ABase {
@Z
protected fun String.test(p: Int) {
}
inline fun test() {
{
"123".<caret>test(1)
}()
}
}
@@ -0,0 +1,18 @@
// "Replace with generated @PublishedApi bridge call '`access$test`(...)'" "true"
annotation class Z
open class ABase {
@Z
protected fun String.test(p: Int) {
}
inline fun test() {
{
"123".`access$test`(1)
}()
}
@PublishedApi
internal fun String.`access$test`(p: Int) = test(p)
}
@@ -0,0 +1,18 @@
// "Replace with generated @PublishedApi bridge call '`access$test`(...)'" "true"
annotation class Z
open class ABase<T> {
@Z
protected fun test(p: T) {
}
fun param(): T {
return null!!
}
inline fun test() {
{
<caret>test(param())
}()
}
}
@@ -0,0 +1,21 @@
// "Replace with generated @PublishedApi bridge call '`access$test`(...)'" "true"
annotation class Z
open class ABase<T> {
@Z
protected fun test(p: T) {
}
fun param(): T {
return null!!
}
inline fun test() {
{
`access$test`(param())
}()
}
@PublishedApi
internal fun `access$test`(p: T) = test(p)
}
@@ -0,0 +1,19 @@
// "Replace with generated @PublishedApi bridge call '`access$test`(...)'" "true"
open class ABase<T> {
protected fun test(p: T) {
}
fun param(): T {
return null!!
}
}
open class A : ABase<String>() {
inline fun test() {
{
<caret>test(param())
}()
}
}
@@ -0,0 +1,22 @@
// "Replace with generated @PublishedApi bridge call '`access$test`(...)'" "true"
open class ABase<T> {
protected fun test(p: T) {
}
fun param(): T {
return null!!
}
}
open class A : ABase<String>() {
inline fun test() {
{
`access$test`(param())
}()
}
@PublishedApi
internal fun `access$test`(p: String) = test(p)
}
@@ -0,0 +1,17 @@
// "Replace with generated @PublishedApi bridge call '`access$test`(...)'" "true"
annotation class Z
open class ABase {
@Z
protected fun <T> test(p: T): T {
null!!
}
inline fun test() {
{
//TODO remove generic
<caret>test<String>("123")
}()
}
}
@@ -0,0 +1,20 @@
// "Replace with generated @PublishedApi bridge call '`access$test`(...)'" "true"
annotation class Z
open class ABase {
@Z
protected fun <T> test(p: T): T {
null!!
}
inline fun test() {
{
//TODO remove generic
`access$test`<String>("123")
}()
}
@PublishedApi
internal fun <T> `access$test`(p: String) = test(p)
}
@@ -0,0 +1,15 @@
// "Replace with generated @PublishedApi bridge call '`access$test`(...)'" "true"
annotation class Z
open class ABase {
@Z
protected fun test(p: Int) {
}
inline fun test() {
{
<caret>test(1)
}()
}
}
@@ -0,0 +1,18 @@
// "Replace with generated @PublishedApi bridge call '`access$test`(...)'" "true"
annotation class Z
open class ABase {
@Z
protected fun test(p: Int) {
}
inline fun test() {
{
`access$test`(1)
}()
}
@PublishedApi
internal fun `access$test`(p: Int) = test(p)
}