Annotated the return type of 'elvis' function with @Exact
fun <T> ELVIS(T?, T): @Exact T
This commit is contained in:
@@ -12,7 +12,7 @@ fun stringLen(s : String?) : Int {
|
||||
}
|
||||
|
||||
fun stringReturnInLeftLen(s : String?) : Int {
|
||||
val s1 : String = (if (s != null) { return s.length() } else { null }) ?: return 0
|
||||
val s1 = (if (s != null) { return s.length() } else { null }) ?: return 0
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
|
||||
Reference in New Issue
Block a user