"Useless call on collection type" inspection: Apply to 'kotlin.sequences.orEmpty'

This commit is contained in:
Toshiaki Kameyama
2018-06-19 12:02:30 +09:00
committed by Ilya Gorbunov
parent c4b785de36
commit 6a140fb9ed
4 changed files with 16 additions and 0 deletions
@@ -0,0 +1,5 @@
// WITH_RUNTIME
fun test(s: Sequence<Int>) {
val foo = s<caret>.orEmpty()
}
@@ -0,0 +1,5 @@
// WITH_RUNTIME
fun test(s: Sequence<Int>) {
val foo = s
}