From f95b23d7433f4ae248cb78be2e86f6839bf5d8c6 Mon Sep 17 00:00:00 2001 From: sterni Date: Wed, 7 Sep 2022 15:55:00 +0200 Subject: test(tvix/eval): test “useful” plain inherits MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ic4700f0618a393e45a2ee7c70045edff97e30c49 Reviewed-on: https://cl.tvl.fyi/c/depot/+/6493 Tested-by: BuildkiteCI Reviewed-by: tazjin Reviewed-by: sterni --- .../src/tests/tvix_tests/eval-okay-let-useful-plain-inherit.exp | 1 + .../src/tests/tvix_tests/eval-okay-let-useful-plain-inherit.nix | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 tvix/eval/src/tests/tvix_tests/eval-okay-let-useful-plain-inherit.exp create mode 100644 tvix/eval/src/tests/tvix_tests/eval-okay-let-useful-plain-inherit.nix (limited to 'tvix') diff --git a/tvix/eval/src/tests/tvix_tests/eval-okay-let-useful-plain-inherit.exp b/tvix/eval/src/tests/tvix_tests/eval-okay-let-useful-plain-inherit.exp new file mode 100644 index 000000000000..d00491fd7e5b --- /dev/null +++ b/tvix/eval/src/tests/tvix_tests/eval-okay-let-useful-plain-inherit.exp @@ -0,0 +1 @@ +1 diff --git a/tvix/eval/src/tests/tvix_tests/eval-okay-let-useful-plain-inherit.nix b/tvix/eval/src/tests/tvix_tests/eval-okay-let-useful-plain-inherit.nix new file mode 100644 index 000000000000..3d1c46b10bb2 --- /dev/null +++ b/tvix/eval/src/tests/tvix_tests/eval-okay-let-useful-plain-inherit.nix @@ -0,0 +1,9 @@ +with { a = 1; }; + +let + inherit a; +in + +with { a = 2; }; + +a -- cgit 1.4.1