the plugin warns you when it cannot inlineand so w...
# getting-started
n
the plugin warns you when it cannot inlineand so would kotlinc, i assume if it does not error .. that it inlines
s
interesting, have you ever run into a case when compiler couldn't?
n
well usually the plugin will show me what errors before i try to compile.. i do not remember what did not work though, take it with a grain of salt
s
ah i see
k
When you use it a as a function reference for example.
s
Just tried an inline member reference and the code was indeed inlined
Copy code
executeFunction( this::sampleFun )

   private fun executeFunction( block : () -> Unit ) {
        block()
    }

    private inline fun sampleFun() {
        println( "sampleFun finished" )
    }
Did you mean something else by function reference?
k
I was mixing this up with function parameters that aren't inlined because you pass them to other contexts.
s
Ah got it