@Suppress("BOUNDS_NOT_ALLOWED_IF_BOUNDED_BY_TYPE_PARAMETER")
public inline fun <C, R> C.ifEmpty(defaultValue: () -> R): R where C : CharSequence, C : R =
if (isEmpty()) defaultValue() else this
c
CLOVIS
01/28/2021, 7:54 PM
Is it really safe? It sounded more like an error than a warning to me (not the original person)