emmanuelvinas
08/02/2021, 12:03 PMimport androidx.compose.runtime.Composable
import androidx.compose.ui.graphics.BlendMode
@Composable
fun TestBlendMode(
blendMode: BlendMode = BlendMode.Multiply
) {
// Comment this line and compilation should work as expected
val mode = blendMode
}
If i use a blendmode inside a composable, i get a crash. Anyone getting the same error with the 1.0.0 version?
: java.lang.AssertionError: Assertion failed
at org.jetbrains.kotlin.ir.util.AdditionalIrUtilsKt.getPropertyGetter(AdditionalIrUtils.kt:236)
at androidx.compose.compiler.plugins.kotlin.lower.AbstractComposeLowering.unboxValueIfInline(AbstractComposeLowering.kt:311)
Lukas
08/17/2021, 11:13 AMenum class BlendModeWrapper(val blendMode: BlendMode) {
WrapperDstIn(BlendMode.DstIn)
}
fun TestBlendMode(blendMode: BlendModeWrapper) {
blendMode.blendMode
}