Created
March 13, 2018 22:43
-
-
Save anonymous/5ca5421d6f2c3190edbed54f7d03b341 to your computer and use it in GitHub Desktop.
Snippet from snip
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sets | |
type | |
parent = object | |
hash: HashSet[string] | |
proc getParent(): parent = | |
result.hash.init() | |
let a = getParent() | |
a.hash.incl("Hello") |
genotrance
commented
Mar 13, 2018
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