Create function quick fix: fix visibility from inline method #KT-25228 Fixed

This commit is contained in:
Toshiaki Kameyama
2018-07-30 11:02:18 +09:00
committed by Alexey Sedunov
parent e2945b1d12
commit dc57887a4d
10 changed files with 95 additions and 1 deletions
@@ -0,0 +1,6 @@
// "Create function 'g'" "true"
class C {
internal inline fun f() {
<caret>g()
}
}
@@ -0,0 +1,10 @@
// "Create function 'g'" "true"
class C {
internal inline fun f() {
g()
}
private fun g() {
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
}
}
@@ -0,0 +1,6 @@
// "Create function 'g'" "true"
class C {
private inline fun f() {
<caret>g()
}
}
@@ -0,0 +1,10 @@
// "Create function 'g'" "true"
class C {
private inline fun f() {
g()
}
private fun g() {
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
}
}
@@ -0,0 +1,6 @@
// "Create function 'g'" "true"
class C {
protected inline fun f() {
<caret>g()
}
}
@@ -0,0 +1,10 @@
// "Create function 'g'" "true"
class C {
protected inline fun f() {
g()
}
protected fun g() {
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
}
}
@@ -0,0 +1,6 @@
// "Create function 'g'" "true"
class C {
inline fun f() {
<caret>g()
}
}
@@ -0,0 +1,10 @@
// "Create function 'g'" "true"
class C {
inline fun f() {
g()
}
fun g() {
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
}
}