Correct handling of erroneous code during code extraction
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
// EXTRACTION_TARGET: property with getter
|
||||
|
||||
fun doSomethingStrangeWithCollection(collection: Collection<String>): Collection<String>? {
|
||||
val groupsByLength = collection.groupBy { s -> { s.length } }
|
||||
|
||||
val maximumSizeOfGroup = groupsByLength.values.maxBy { it.size }.
|
||||
return groupsByLength.values.firstOrNull { group -> {<selection>group.size == maximumSizeOfGroup</selection>} }
|
||||
}
|
||||
Reference in New Issue
Block a user