From 73065a400d176b21f518c1f4ece90c31318b218d Mon Sep 17 00:00:00 2001 From: pennae Date: Sat, 27 Jan 2024 16:33:34 +0100 Subject: [PATCH] add test for inherit expr printing --- tests/functional/lang/parse-okay-inherits.exp | 1 + tests/functional/lang/parse-okay-inherits.nix | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 tests/functional/lang/parse-okay-inherits.exp create mode 100644 tests/functional/lang/parse-okay-inherits.nix diff --git a/tests/functional/lang/parse-okay-inherits.exp b/tests/functional/lang/parse-okay-inherits.exp new file mode 100644 index 000000000..050b54afd --- /dev/null +++ b/tests/functional/lang/parse-okay-inherits.exp @@ -0,0 +1 @@ +(let c = { }; b = 2; in { a = 1; inherit b ; d = (c).d; e = (c).e; f = 3; }) diff --git a/tests/functional/lang/parse-okay-inherits.nix b/tests/functional/lang/parse-okay-inherits.nix new file mode 100644 index 000000000..10596c8ad --- /dev/null +++ b/tests/functional/lang/parse-okay-inherits.nix @@ -0,0 +1,9 @@ +let + c = {}; + b = 2; +in { + a = 1; + inherit b; + inherit (c) d e; + f = 3; +}