Simplifiable call: support case w/out receiver, add minor enhancements

Related to KT-30501
This commit is contained in:
Mikhail Glukhikh
2019-05-07 13:43:46 +03:00
parent 8328af5694
commit 54411bd248
4 changed files with 19 additions and 7 deletions
@@ -0,0 +1,4 @@
// WITH_RUNTIME
fun List<Any>.test() {
<caret>filter { it is String }
}
@@ -0,0 +1,4 @@
// WITH_RUNTIME
fun List<Any>.test() {
filterIsInstance<String>()
}