about summary refs log tree commit diff
path: root/tests/lang
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2006-07-10T17·35+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2006-07-10T17·35+0000
commit2b4b0658fa3f959f3b25dc75a3aa0a9814e63962 (patch)
tree799d5a845e50164ace904f8e5bd3dbb1df4079d8 /tests/lang
parentd51aede4afeb49182879f257b56394b70938028f (diff)
* This expression has an undefined variable which isn't detected, so
  evaluation fails:

    error: impossible: undefined variable `gcc'

Diffstat (limited to 'tests/lang')
-rw-r--r--tests/lang/parse-fail-regression-20060610.nix11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/lang/parse-fail-regression-20060610.nix b/tests/lang/parse-fail-regression-20060610.nix
new file mode 100644
index 000000000000..b1934f7e1e82
--- /dev/null
+++ b/tests/lang/parse-fail-regression-20060610.nix
@@ -0,0 +1,11 @@
+let {
+  x =
+    {gcc}:
+    {
+      inherit gcc;
+    };
+
+  body = ({
+    inherit gcc;
+  }).gcc;
+}