I tried something like this:
private volatile var instanceState: InstanceState = InstanceState.starts
Error: 'Expected member declaration'
and like this:
private volatile var instanceState: InstanceState = InstanceState.starts
Error: 'Property getter or setter expected'
Volatile not supported on Kotlin ?
Kotlin does not have a volatile
keyword but an annotation: @Volatile
(https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.jvm/-volatile/)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With