Skip to content

Not Currently Translatable

UnknownJoe796 edited this page Sep 6, 2022 · 2 revisions

We track Kotlin constructs that we know don't translate yet here.

Early Returns/Breaks/Exceptions inside of expressions

fun cannotTranslate(value: Int? = null) {
    // Can't translate this early return!
    otherFunction(value ?: return)
}
fun ok(value: Int? = null) {
    // This has a special case however
    val valueNotNull = value ?: return
}