Tell function return types to workaround compiler bug

This commit is contained in:
Dude so hot authored and renovate[bot] committed 2024-06-07 17:11:04 +08:00
1 parent 593f24b86f
commit f0291d94f9
1 file changed
+1 -1
@@ -113,7 +113,7 @@ class DialogState {
@StringRes title: Int? = null,
invalidator: (suspend Raise<String>.(R) -> Unit)? = null,
block: @Composable DialogScope<R>.(String?) -> Unit,
) = dialog { cont ->
): R = dialog { cont ->
val coroutineScope = rememberCoroutineScope()
val state = remember(cont) { mutableStateOf(initial) }
var errorMsg by remember(cont) { mutableStateOf<String?>(null) }