Files
kotlin-fork/idea/testData/inspectionsLocal/collections/uselessCallOnNotNull/SafeCall.kt
T
Mikhail Glukhikh 0f4ae3b727 Introduce "Useless call on not-null type" inspection #KT-18386 Fixed
Supported functions: orEmpty(), isNullOrEmpty(), isNullOrBlank()
2017-06-29 16:25:45 +03:00

4 lines
85 B
Kotlin
Vendored

// WITH_RUNTIME
val list1: List<Int>? = listOf(1)
val list = list1<caret>?.orEmpty()