You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

14 lines
433 B

// @Module:Main
// https://github.com/JetBrains/compose-jb/issues/1436
import kotlin.reflect.KProperty
import androidx.compose.runtime.*
fun main() {
var (foo, setFoo) = mutableStateOf(0)
setFoo(123) // set
require(foo == 0) { "If this failed, it probably means the issue was fixed" }
require(foo == 123) { "Expected Failure (wrong behaviour)! foo was expected to get updated, but it's acutal value is $foo" }
}