Merge pull request #8971 from LemonBoy/fix-8967

Fix codegen for set[T] parameters
This commit is contained in:
Andreas Rumpf
2018-09-15 12:55:23 +02:00
committed by GitHub
3 changed files with 20 additions and 8 deletions

10
tests/ccgbugs/t8967.nim Normal file
View File

@@ -0,0 +1,10 @@
discard """
targets: "c cpp"
"""
import marshal
let orig: set[char] = {'A'..'Z'}
let m = $$orig
let old = to[set[char]](m)
doAssert orig - old == {}