From ec36303627514208d26432307e0efea6e0d580ee Mon Sep 17 00:00:00 2001 From: Lars Jellema Date: Tue, 10 Oct 2023 23:03:23 +0200 Subject: [PATCH] Add tests for invalid dynamic inherit interpolations --- test/invalid/interpolation-in-inherit-1.nix | 4 ++++ test/invalid/interpolation-in-inherit-2.nix | 1 + 2 files changed, 5 insertions(+) create mode 100644 test/invalid/interpolation-in-inherit-1.nix create mode 100644 test/invalid/interpolation-in-inherit-2.nix diff --git a/test/invalid/interpolation-in-inherit-1.nix b/test/invalid/interpolation-in-inherit-1.nix new file mode 100644 index 00000000..bf47290a --- /dev/null +++ b/test/invalid/interpolation-in-inherit-1.nix @@ -0,0 +1,4 @@ +let + bar = "bar"; + +in { inherit ${bar}; } diff --git a/test/invalid/interpolation-in-inherit-2.nix b/test/invalid/interpolation-in-inherit-2.nix new file mode 100644 index 00000000..431b1d1a --- /dev/null +++ b/test/invalid/interpolation-in-inherit-2.nix @@ -0,0 +1 @@ +{ inherit ${"foo" + "bar"}; }