parent
6505bd347d
commit
a600dfa5b7
2 changed files with 36 additions and 0 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue