parent
60ad95f799
commit
1df5cfba52
2 changed files with 22 additions and 1 deletions
|
|
@ -396,7 +396,7 @@ proc deps(c: var Partitions; dest, src: PNode) =
|
||||||
(src.sym.kind in {skLet, skParam, skForVar} and hasDisabledAsgn(src.sym.typ))):
|
(src.sym.kind in {skLet, skParam, skForVar} and hasDisabledAsgn(src.sym.typ))):
|
||||||
c.s[vid].flags.incl preventCursor
|
c.s[vid].flags.incl preventCursor
|
||||||
|
|
||||||
if hasDestructor(src.typ):
|
if src.kind == nkSym and hasDestructor(src.typ):
|
||||||
rhsIsSink(c, src)
|
rhsIsSink(c, src)
|
||||||
|
|
||||||
proc traverse(c: var Partitions; n: PNode) =
|
proc traverse(c: var Partitions; n: PNode) =
|
||||||
|
|
|
||||||
|
|
@ -171,3 +171,24 @@ proc encodedQuery =
|
||||||
elem.tt()
|
elem.tt()
|
||||||
|
|
||||||
encodedQuery()
|
encodedQuery()
|
||||||
|
|
||||||
|
# bug #15147
|
||||||
|
|
||||||
|
proc s(input: string): (string, string) =
|
||||||
|
result = (";", "")
|
||||||
|
|
||||||
|
proc charmatch(input: string): (string, string) =
|
||||||
|
result = ("123", input[0 .. input.high])
|
||||||
|
|
||||||
|
proc plus(input: string) =
|
||||||
|
var
|
||||||
|
lvalue, rvalue: string # cursors
|
||||||
|
lnext: string # must be cursor!!!
|
||||||
|
rnext: string # cursor
|
||||||
|
let lresult = charmatch(input)
|
||||||
|
(lvalue, lnext) = lresult
|
||||||
|
|
||||||
|
let rresult = s(lnext)
|
||||||
|
(rvalue, rnext) = rresult
|
||||||
|
|
||||||
|
plus("123;")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue