* fixes #15361; better cursor inference
This commit is contained in:
Andreas Rumpf 2020-09-24 15:41:45 +02:00 • committed by GitHub
commit 4ec5cbac0d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 196 additions and 45 deletions

View file

@ -52,7 +52,7 @@ _ = (
blitTmp, ";")
lvalue = _[0]
lnext_cursor = _[1]
`=sink`(result.value, lvalue)
`=sink`(result.value, move lvalue)
-- end of expandArc ------------------------
--expandArc: tt
@ -148,7 +148,7 @@ proc p1(): Maybe =
var lnext: string
(lvalue, lnext) = (lresult, ";")
result.value = lvalue
result.value = move lvalue
proc tissue15130 =
doAssert p1().value == @[123]