Removed the use of .gensym pragma inside stdlib templates
This commit is contained in:
parent
55e86184a5
commit
91d3661522
2 changed files with 9 additions and 9 deletions
|
|
@ -231,7 +231,7 @@ template sortedByIt*(seq1, op: untyped): untyped =
|
|||
##
|
||||
## echo people.sortedByIt((it.age, it.name))
|
||||
##
|
||||
var result {.gensym.} = sorted(seq1, proc(x, y: type(seq1[0])): int =
|
||||
var result = sorted(seq1, proc(x, y: type(seq1[0])): int =
|
||||
var it {.inject.} = x
|
||||
let a = op
|
||||
it = y
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue