diff options
author | eldritch horrors <pennae@lix.systems> | 2024-03-08 09:51:10 +0100 |
---|---|---|
committer | eldritch horrors <pennae@lix.systems> | 2024-03-10 03:18:32 -0600 |
commit | 3e43f4aeff2947aea98bb0d538fa686bd55a1385 (patch) | |
tree | 9de8dc7389d0223b4018647acc6bc9e2c9879076 /tests/functional | |
parent | 0c19e6b56c1adc02583487147c75dc520c5c3f1e (diff) |
add test for inherit expr printing
(cherry picked from commit 73065a400d176b21f518c1f4ece90c31318b218d)
Change-Id: I9356d8084d241a7904b66554d7c4194f8433edf7
Diffstat (limited to 'tests/functional')
-rw-r--r-- | tests/functional/lang/parse-okay-inherits.exp | 1 | ||||
-rw-r--r-- | tests/functional/lang/parse-okay-inherits.nix | 9 |
2 files changed, 10 insertions, 0 deletions
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; +} |