我试过这样的方法:
private volatile var instanceState: InstanceState = InstanceState.starts
Error: 'Expected member declaration'
就像这样:
private volatile var instanceState: InstanceState = InstanceState.starts
Error: 'Property getter or setter expected'
Volatile not supported on Kotlin ?