Skip to content

Instantly share code, notes, and snippets.

@wleii
Created November 9, 2017 11:08
Show Gist options
  • Save wleii/783fb3cc2f74d271160feab498a0c66f to your computer and use it in GitHub Desktop.
Save wleii/783fb3cc2f74d271160feab498a0c66f to your computer and use it in GitHub Desktop.
ERRORs
struct Model {
lazy var value: String = {
return text
}()
var myValue: String {
return value //error: Cannot use mutating getter on immutable value: 'self' is immutable
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment