* fix #15756

* simplify test
This commit is contained in:
cooldome 2020-10-28 13:24:38 +00:00 • committed by GitHub
commit 610e9b2fe9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 1 deletions

View file

@ -126,7 +126,7 @@ proc hasSideEffect*(c: var Partitions; info: var MutationInfo): bool =
return true
return false
template isConstParam(a): bool = a.kind == skParam and a.typ.kind != tyVar
template isConstParam(a): bool = a.kind == skParam and a.typ.kind notin {tyVar, tySink}
proc variableId(c: Partitions; x: PSym): int =
for i in 0 ..< c.s.len: