Inline function: add extra tests taken from intellij-community
This commit is contained in:
Vendored
+23
@@ -0,0 +1,23 @@
|
||||
object Foo {
|
||||
fun <caret>foo() {
|
||||
bar(object : Runnable {
|
||||
override fun run() {
|
||||
doRun()
|
||||
}
|
||||
|
||||
private fun doRun() {
|
||||
// Woo-hoo
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
fun bar(runnable: Runnable) {
|
||||
runnable.run()
|
||||
}
|
||||
}
|
||||
|
||||
internal object Bar {
|
||||
@JvmStatic fun main(args: Array<String>) {
|
||||
Foo.foo()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user