From 7ae9c4358e9385bbcce0b1acd874e3e2a51a1613 Mon Sep 17 00:00:00 2001 From: Oscar NihlgÄrd Date: Sat, 30 Jun 2018 13:38:52 +0200 Subject: Fix vm regression (#8163) --- tests/vm/tvmmisc.nim | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'tests/vm/tvmmisc.nim') 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 -- cgit 1.4.1-2-gfad0 'this.form.submit();'> This repository contains the Nim compiler, Nim's stdlib, tools, and documentation. (mirror)ahoang <ahoang@tilde.institute>
summary refs log blame commit diff stats
path: root/tests/dll/nimhcr_unit.nim
blob: f539a53c8d607156e018d09d4089f64a18d97b9d (plain) (tree)