Files
kotlin-fork/idea/testData/intentions/branched/ifThenToElvis/isCheckWithSelectorChain.kt.after
T
Mikhail Glukhikh a901de5112 KT-14084 related : replaceFirstReceiver now replaces ALL calls to safe calls if necessary
Fixes relevant "replace let" and "if to elvis" cases
2016-10-25 17:57:06 +03:00

5 lines
94 B
Plaintext
Vendored

class My(val x: Int)
fun foo(arg: Any?): Int {
return (arg as? My)?.x?.hashCode() ?: 42
}