closes #11267; closes #11259; closes #11085; add testcases (#20505)

* closes #11267; add testcase

* closes #11259

* closes #11085
This commit is contained in:
ringabout 2022-10-06 02:30:10 +08:00 • committed by GitHub
commit a600dfa5b7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 36 additions and 0 deletions

View file

@ -33,3 +33,15 @@ proc bug20303() =
doAssert res == "are"
bug20303()
proc main() = # todo bug with templates
block: # bug #11267
var a: seq[char] = block: @[]
doAssert a == @[]
# 2
proc b: seq[string] =
discard
@[]
doAssert b() == @[]
static: main()
main()