All Downloads are FREE. Search and download functionalities are using the official Maven repository.

main.seskar.compiler.value.backend.ValueClass.kt Maven / Gradle / Ivy

There is a newer version: 3.75.0
Show newest version
package seskar.compiler.value.backend

import org.jetbrains.kotlin.ir.types.IrType
import org.jetbrains.kotlin.ir.types.getClass
import org.jetbrains.kotlin.ir.util.kotlinFqName

internal fun downCastRequired(
    type: IrType,
): Boolean {
    val klass = type.getClass()
        ?: return false

    return klass.isJsValue() || klass.kotlinFqName == DURATION
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy