aboutsummaryrefslogtreecommitdiffstats
path: root/test/testdata/eval-fail-nested-list-items.nix
diff options
context:
space:
mode:
Diffstat (limited to 'test/testdata/eval-fail-nested-list-items.nix')
-rw-r--r--test/testdata/eval-fail-nested-list-items.nix11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/testdata/eval-fail-nested-list-items.nix b/test/testdata/eval-fail-nested-list-items.nix
new file mode 100644
index 0000000..af45b1d
--- /dev/null
+++ b/test/testdata/eval-fail-nested-list-items.nix
@@ -0,0 +1,11 @@
1# This reproduces https://github.com/NixOS/nix/issues/10993, for lists
2# $ nix run nix/2.23.1 -- eval --expr '"" + (let v = [ [ 1 2 3 4 5 6 7 8 ] [1 2 3 4]]; in builtins.deepSeq v v)'
3# error:
4# … while evaluating a path segment
5# at «string»:1:6:
6# 1| "" + (let v = [ [ 1 2 3 4 5 6 7 8 ] [1 2 3 4]]; in builtins.deepSeq v v)
7# | ^
8#
9# error: cannot coerce a list to a string: [ [ 1 2 3 4 5 6 7 8 ] [ 1 «4294967290 items elided» ] ]
10
11"" + (let v = [ [ 1 2 3 4 5 6 7 8 ] [1 2 3 4]]; in builtins.deepSeq v v)