Skip to content

Instantly share code, notes, and snippets.

@CheolhoJeon
Created June 14, 2021 02:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CheolhoJeon/1c66571dbd85ada29528a44c98893f9c to your computer and use it in GitHub Desktop.
Save CheolhoJeon/1c66571dbd85ada29528a44c98893f9c to your computer and use it in GitHub Desktop.
package chap5.Object.objectshare2
import atomictest.eq
import chap5.Object.objectshare1.f
import chap5.Object.objectsharing.Shared
fun g() {
Shared.i += 7
}
fun main() {
f()
g()
Shared.i eq 12
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment