Given the following code snippet ``` inline fun fo...
# announcements
b
Given the following code snippet
Copy code
inline fun foo(bar: MyType?) = if (bar != null) {
    doSomething(bar)
} else {
    doSomethingElse()
}

fun main(args: Array<out String>) {
    foo(MyType())
}
will the compiler optimize the inlining of
foo
in the main function to only include
doSomething(bar)
since the compiler can guarantee that
bar != null
is always the case?