make addQuoted work on nimscript (#12717) [backport]

This commit is contained in:
Jasper Jenkins 2019-11-28 14:01:17 -08:00 • committed by Andreas Rumpf
commit 9ea55eccbb
3 changed files with 12 additions and 5 deletions

View file

@ -1,7 +1,12 @@
import exposed
type NumberHolder = object
ival: int
fval: float
echo "top level statements are executed!"
echo NumberHolder(ival: 10, fval: 2.0)
proc hostProgramRunsThis*(a, b: float): float =
result = addFloats(a, b, 1.0)