parent
928c2fee06
commit
9eeff690d5
2 changed files with 1 additions and 9 deletions
|
|
@ -60,6 +60,7 @@ proc lowerTupleUnpacking*(g: ModuleGraph; n: PNode; owner: PSym): PNode =
|
||||||
var temp = newSym(skTemp, getIdent(g.cache, genPrefix), owner, value.info, g.config.options)
|
var temp = newSym(skTemp, getIdent(g.cache, genPrefix), owner, value.info, g.config.options)
|
||||||
temp.typ = skipTypes(value.typ, abstractInst)
|
temp.typ = skipTypes(value.typ, abstractInst)
|
||||||
incl(temp.flags, sfFromGeneric)
|
incl(temp.flags, sfFromGeneric)
|
||||||
|
incl(temp.flags, sfCursor)
|
||||||
|
|
||||||
var v = newNodeI(nkVarSection, value.info)
|
var v = newNodeI(nkVarSection, value.info)
|
||||||
let tempAsNode = newSymNode(temp)
|
let tempAsNode = newSymNode(temp)
|
||||||
|
|
|
||||||
|
|
@ -23,12 +23,3 @@ test()
|
||||||
import tables
|
import tables
|
||||||
var t = initTable[string, seq[ptr int]]()
|
var t = initTable[string, seq[ptr int]]()
|
||||||
discard t.hasKeyOrPut("f1", @[])
|
discard t.hasKeyOrPut("f1", @[])
|
||||||
|
|
||||||
|
|
||||||
#############################################
|
|
||||||
### bug #12989
|
|
||||||
proc bug(start: (seq[int], int)) =
|
|
||||||
let (s, i) = start
|
|
||||||
|
|
||||||
let input = @[0]
|
|
||||||
bug((input, 0))
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue