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
commit 4342b79a3c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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 == {}