Files
kotlin-fork/idea/testData/intentions/branched/ifWhen/whenToIf/whenWithNegativePatterns.kt.after
T

6 lines
228 B
Plaintext
Vendored

fun test(obj: Any): String {
return <caret>if (obj !is Iterable<*>) "not iterable"
else if (obj !is Collection<*>) "not collection"
else if (obj !is MutableCollection<*>) "not mutable collection"
else "unknown"
}