liminal
05/25/2017, 12:27 AMif (x !is String) return
and the IDE suggested that I should replace if
operator with elvis. I tried replacing it with (x is String) ?: return
but got a warning "Elvis operator always returns the left operand of non-nullable type Boolean". The same statement produces the same error in try.kotlinlang.org.yole
05/26/2017, 11:44 AMliminal
05/26/2017, 1:32 PM