[K/N] Migrate compiler, interop and others to new case conversion api

This commit is contained in:
Abduqodiri Qurbonzoda
2021-04-08 02:34:32 +03:00
parent a4839b8548
commit 983985bc68
13 changed files with 32 additions and 31 deletions
@@ -79,7 +79,7 @@ abstract class ArgType<T : Any>(val hasParameter: kotlin.Boolean) {
enumValues<T>().find { e -> e.toString().equals(it, ignoreCase = true) } ?:
throw IllegalArgumentException("No enum constant $it")
},
noinline toString: (T) -> kotlin.String = { it.toString().toLowerCase() }): Choice<T> {
noinline toString: (T) -> kotlin.String = { it.toString().lowercase() }): Choice<T> {
return Choice(enumValues<T>().toList(), toVariant, toString)
}
}