Fix vm regression (#8163)

This commit is contained in:
Oscar Nihlgård 2018-06-30 13:38:52 +02:00 • committed by Andreas Rumpf
commit 7ae9c4358e
2 changed files with 20 additions and 0 deletions

View file

@ -135,3 +135,16 @@ static:
o.pushName()
o.pushName()
doAssert o.names == "FOOBARFOOBAR"
# #8154
import parseutils
static:
type Obj = object
i: int
proc foo(): Obj =
discard parseInt("1", result.i, 0)
static:
doAssert foo().i == 1