Refactoring: "introduce when subject" is now an inspection
This commit is contained in:
Vendored
+8
@@ -0,0 +1,8 @@
|
||||
fun test(obj: Any): String {
|
||||
return <caret>when (obj) {
|
||||
!is Iterable<*> -> "not iterable"
|
||||
!is Collection<*> -> "not collection"
|
||||
!is MutableCollection<*> -> "not mutable collection"
|
||||
else -> "unknown"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user