about summary refs log tree commit diff
path: root/third_party/nix/src/tests/lang/eval-okay-redefine-builtin.nix
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/nix/src/tests/lang/eval-okay-redefine-builtin.nix')
-rw-r--r--third_party/nix/src/tests/lang/eval-okay-redefine-builtin.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/third_party/nix/src/tests/lang/eval-okay-redefine-builtin.nix b/third_party/nix/src/tests/lang/eval-okay-redefine-builtin.nix
new file mode 100644
index 000000000000..df9fc3f37d22
--- /dev/null
+++ b/third_party/nix/src/tests/lang/eval-okay-redefine-builtin.nix
@@ -0,0 +1,3 @@
+let
+  throw = abort "Error!";
+in (builtins.tryEval <foobaz>).success