Files
kotlin-fork/idea/testData/inspectionsLocal/collections/uselessCallOnNotNull/SafeCall.kt.after
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
77 B
Plaintext
Vendored

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