"Useless call on collection type" inspection: Apply to 'kotlin.sequences.orEmpty'
This commit is contained in:
committed by
Ilya Gorbunov
parent
c4b785de36
commit
6a140fb9ed
@@ -0,0 +1,5 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
fun test(s: Sequence<Int>) {
|
||||
val foo = s<caret>.orEmpty()
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
fun test(s: Sequence<Int>) {
|
||||
val foo = s
|
||||
}
|
||||
Reference in New Issue
Block a user