Skip to content

Instantly share code, notes, and snippets.

@NavdeepSinghh
Created June 18, 2019 10:54
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 NavdeepSinghh/c71e7c61b8eb5a66ade8ef380f3ce003 to your computer and use it in GitHub Desktop.
Save NavdeepSinghh/c71e7c61b8eb5a66ade8ef380f3ce003 to your computer and use it in GitHub Desktop.
do {
let testReference1 = TestReference(temp1: 1, temp2: 2)
let testReference2 = testReference1
testReference2.temp1 = 10
dump(testReference1)
dump(testReference2)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment