parent
532edc3e9a
commit
f4c9eb1774
2 changed files with 6 additions and 0 deletions
|
|
@ -733,6 +733,7 @@ proc p(n: PNode; c: var Con): PNode =
|
||||||
for j in 0..L-3:
|
for j in 0..L-3:
|
||||||
let v = it[j]
|
let v = it[j]
|
||||||
if v.kind == nkSym:
|
if v.kind == nkSym:
|
||||||
|
if sfCompileTime in v.sym.flags: continue
|
||||||
# move the variable declaration to the top of the frame:
|
# move the variable declaration to the top of the frame:
|
||||||
c.addTopVar v
|
c.addTopVar v
|
||||||
# make sure it's destroyed at the end of the proc:
|
# make sure it's destroyed at the end of the proc:
|
||||||
|
|
|
||||||
|
|
@ -17,3 +17,8 @@ echo cast[string](@[116'u8, 101, 115, 116])
|
||||||
var a = cast[seq[uint32]]("test1234")
|
var a = cast[seq[uint32]]("test1234")
|
||||||
a.setLen(2)
|
a.setLen(2)
|
||||||
echo a
|
echo a
|
||||||
|
|
||||||
|
|
||||||
|
#issue 11204
|
||||||
|
var ac {.compileTime.} = @["a", "b"]
|
||||||
|
const bc = ac.len
|
||||||
Loading…
Add table
Add a link
Reference in a new issue