Files
kotlin-fork/idea/testData/inspectionsLocal/branched/introduceWhenSubject/whenWithNegativePatterns.kt
T
2017-12-26 18:39:48 +03:00

8 lines
248 B
Kotlin
Vendored

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