Added ifThenToElvisIntention
This commit is contained in:
committed by
Zalim Bashorov
parent
673369affe
commit
1ca4bb0e79
+9
@@ -0,0 +1,9 @@
|
||||
fun maybeFoo(): String? {
|
||||
return "foo"
|
||||
}
|
||||
|
||||
val x = maybeFoo()
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
x ?: "abc"
|
||||
}
|
||||
Reference in New Issue
Block a user