Replace with safe call: do not add redundant elvis operator

#KT-34432 Fixed
This commit is contained in:
Toshiaki Kameyama
2019-10-18 20:36:59 +09:00
committed by Dmitry Gridin
parent fa0398ffd3
commit e8effe6727
10 changed files with 80 additions and 7 deletions
+10
View File
@@ -0,0 +1,10 @@
// "Replace with safe (?.) call" "true"
// WITH_RUNTIME
fun main() {
var a = foo()<caret>.length ?: 0
}
fun foo(): String? {
return ""
}