This commit is contained in:
cooldome 2020-11-26 13:37:34 +00:00 • committed by GitHub
commit 8c12d3e29d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 68 additions and 54 deletions

View file

@ -19,6 +19,8 @@ seq[T]:
destroying: ('first', 42)
destroying: ('second', 20)
destroying: ('third', 12)
1 1
'''
"""
@ -111,4 +113,16 @@ echo()
echo "seq[T]:"
seqT()
echo()
echo()
#------------------------------------------------------------------------------
# Issue #16120, const seq into sink
#------------------------------------------------------------------------------
proc main =
let avals = @[@[1.0'f32, 4.0, 7.0, 10.0]]
let rankdef = avals
echo avals.len, " ", rankdef.len
main()