Annotate hash with {.noSideEffect.}

This commit is contained in:
def
2016-02-09 08:27:43 +01:00
parent 510a503f34
commit 887a8d1f0a

View File

@@ -761,7 +761,7 @@ proc `==`* (a,b: JsonNode): bool =
of JObject:
a.fields == b.fields
proc hash*(n: Table[string, JsonNode]): Hash
proc hash*(n: Table[string, JsonNode]): Hash {.noSideEffect.}
proc hash*(n: JsonNode): Hash =
## Compute the hash for a JSON node