Merge pull request #8966 from LemonBoy/fix-8964

Fix hashing for codegenProc (sic) types
This commit is contained in:
Andreas Rumpf 2018-09-14 22:28:12 +02:00 • committed by GitHub
commit 0c04b80651
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 20 additions and 14 deletions

10
tests/ccgbugs/t8964.nim Normal file
View file

@ -0,0 +1,10 @@
discard """
targets: "c cpp"
"""
from json import JsonParsingError
import marshal
const nothing = ""
doAssertRaises(JsonParsingError):
var bar = marshal.to[int](nothing)