Skip to content

Instantly share code, notes, and snippets.

Created March 13, 2018 22:43
Show Gist options
  • Save anonymous/5ca5421d6f2c3190edbed54f7d03b341 to your computer and use it in GitHub Desktop.
Save anonymous/5ca5421d6f2c3190edbed54f7d03b341 to your computer and use it in GitHub Desktop.
Snippet from snip
import sets
type
parent = object
hash: HashSet[string]
proc getParent(): parent =
result.hash.init()
let a = getParent()
a.hash.incl("Hello")
@genotrance
Copy link

let a is not writable but error message is confusing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment