Skip to content

Instantly share code, notes, and snippets.

@rohitsat13
Created January 21, 2021 18:48
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 rohitsat13/1896fa8a799403bf780c78ae645d8af9 to your computer and use it in GitHub Desktop.
Save rohitsat13/1896fa8a799403bf780c78ae645d8af9 to your computer and use it in GitHub Desktop.
/* Copyright 2021 Google LLC.
SPDX-License-Identifier: Apache-2.0 */
data class MyData(
- val mutableType: MutableType
)
- val myType = MutableType()
- val myObj = MyData(myType)
- myType.mutate()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment