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

8 lines
242 B
Plaintext
Vendored

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