diff options
Diffstat (limited to 'tests/arc/t14383.nim')
-rw-r--r-- | tests/arc/t14383.nim | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/tests/arc/t14383.nim b/tests/arc/t14383.nim index 7c63f7333..85f90d1c8 100644 --- a/tests/arc/t14383.nim +++ b/tests/arc/t14383.nim @@ -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() \ No newline at end of file +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() \ No newline at end of file |