about summary refs log tree commit diff
path: root/third_party/nix/tests/lang/eval-okay-flatten.nix
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/nix/tests/lang/eval-okay-flatten.nix')
-rw-r--r--third_party/nix/tests/lang/eval-okay-flatten.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/third_party/nix/tests/lang/eval-okay-flatten.nix b/third_party/nix/tests/lang/eval-okay-flatten.nix
new file mode 100644
index 000000000000..fe911e9683e2
--- /dev/null
+++ b/third_party/nix/tests/lang/eval-okay-flatten.nix
@@ -0,0 +1,8 @@
+with import ./lib.nix;
+
+let {
+
+  l = ["1" "2" ["3" ["4"] ["5" "6"]] "7"];
+
+  body = concat (flatten l);
+}