mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 17:04:41 +00:00
closes #9825
This commit is contained in:
@@ -2,6 +2,17 @@ discard """
|
||||
output: '''ok'''
|
||||
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
|
||||
type
|
||||
Foo = ref object
|
||||
|
||||
Reference in New Issue
Block a user