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

View file

@ -45,7 +45,7 @@ block: # Test compile-time binary data generation, invalid unicode
block: # Test unicode strings
const constStr = "Привет!"
var jsStr : cstring
{.emit: """`jsStr`[0] = "Привет!";""".}
{.emit: """`jsStr` = "Привет!";""".}
doAssert($jsStr == constStr)
var runtimeStr = "При"