closes #9825
This commit is contained in:
parent
de5c0d3aa9
commit
22881a3543
1 changed files with 11 additions and 0 deletions
|
|
@ -2,6 +2,17 @@ discard """
|
||||||
output: '''ok'''
|
output: '''ok'''
|
||||||
cmd: "nim c -r --gc:refc -d:useGcAssert -d:useSysAssert -d:fulldebug -d:smokeCycles $file"
|
cmd: "nim c -r --gc:refc -d:useGcAssert -d:useSysAssert -d:fulldebug -d:smokeCycles $file"
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
# bug #9825
|
||||||
|
func empty(T: typedesc): T = discard
|
||||||
|
const emptyChunk = @(empty(array[10, byte]))
|
||||||
|
|
||||||
|
var lst: seq[seq[byte]]
|
||||||
|
lst.add emptyChunk
|
||||||
|
|
||||||
|
doAssert($lst == "@[@[0, 0, 0, 0, 0, 0, 0, 0, 0, 0]]")
|
||||||
|
|
||||||
|
|
||||||
# bug #6234
|
# bug #6234
|
||||||
type
|
type
|
||||||
Foo = ref object
|
Foo = ref object
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue