diff options
author | Oscar NihlgÄrd <oscarnihlgard@gmail.com> | 2018-06-30 13:38:52 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-06-30 13:38:52 +0200 |
commit | 7ae9c4358e9385bbcce0b1acd874e3e2a51a1613 (patch) | |
tree | e8e45190aa8791c0f6c962b5ed49bcf68ef3cc4e /tests/vm/tvmmisc.nim | |
parent | d146045ed55a45428991ece55e13afb742b2fdc4 (diff) | |
download | Nim-7ae9c4358e9385bbcce0b1acd874e3e2a51a1613.tar.gz |
Fix vm regression (#8163)
Diffstat (limited to 'tests/vm/tvmmisc.nim')
-rw-r--r-- | tests/vm/tvmmisc.nim | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/vm/tvmmisc.nim b/tests/vm/tvmmisc.nim index d82c2cf5e..6a8084647 100644 --- a/tests/vm/tvmmisc.nim +++ b/tests/vm/tvmmisc.nim @@ -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 |