Automatic deref for everything but pointers in asm/emit (#8891)

Fixes #7249
This commit is contained in:
LemonBoy 2018-09-07 01:54:59 +02:00 • committed by Andreas Rumpf
commit af1e84f54d
5 changed files with 42 additions and 10 deletions

21
tests/js/t7249.nim Normal file
View file

@ -0,0 +1,21 @@
discard """
output: '''
a -> 2
a <- 2
'''
"""
import jsffi
var a = JsAssoc[cstring, int]{a: 2}
for z, b in a:
echo z, " -> ", b
proc f =
var a = JsAssoc[cstring, int]{a: 2}
for z, b in a:
echo z, " <- ", b
f()