KT-6159: allow local / private functions inlining
This commit is contained in:
@@ -7,6 +7,5 @@ fun foo() {
|
||||
bar(t)
|
||||
}
|
||||
|
||||
// TODO: should be available
|
||||
<caret>local()
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
fun bar(s: String) {}
|
||||
|
||||
fun foo() {
|
||||
val t = "Test"
|
||||
|
||||
bar(t)
|
||||
}
|
||||
@@ -5,6 +5,5 @@ fun foo() {
|
||||
bar("Test")
|
||||
}
|
||||
|
||||
// TODO: should be available
|
||||
<caret>local()
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
fun bar(s: String) {}
|
||||
|
||||
fun foo() {
|
||||
|
||||
bar("Test")
|
||||
}
|
||||
@@ -1,6 +1,5 @@
|
||||
class My {
|
||||
fun run() {
|
||||
// TODO: should be available
|
||||
val foo = <caret>doThing()
|
||||
System.out.println(foo)
|
||||
}
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
class My {
|
||||
fun run() {
|
||||
// foo1 should be here
|
||||
val foo = 1 + 2
|
||||
val foo = foo
|
||||
System.out.println(foo)
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user