Files
kotlin-fork/idea/testData/inspectionsLocal/branched/ifThenToSafeAccess/doesNotinlineValueIfUsedMoreThanOnce.kt.after
T
2017-12-26 18:39:47 +03:00

12 lines
172 B
Plaintext
Vendored

fun maybeFoo(): String? {
return "foo"
}
fun <T> doSomething(a: T) {}
fun main(args: Array<String>) {
val foo = maybeFoo()
doSomething(foo)
foo?.length
}