mirror of
https://github.com/NixOS/nix.git
synced 2024-11-25 08:12:29 +00:00
add test for inherit expr printing
This commit is contained in:
parent
8669c02468
commit
73065a400d
1
tests/functional/lang/parse-okay-inherits.exp
Normal file
1
tests/functional/lang/parse-okay-inherits.exp
Normal file
@ -0,0 +1 @@
|
||||
(let c = { }; b = 2; in { a = 1; inherit b ; d = (c).d; e = (c).e; f = 3; })
|
9
tests/functional/lang/parse-okay-inherits.nix
Normal file
9
tests/functional/lang/parse-okay-inherits.nix
Normal file
@ -0,0 +1,9 @@
|
||||
let
|
||||
c = {};
|
||||
b = 2;
|
||||
in {
|
||||
a = 1;
|
||||
inherit b;
|
||||
inherit (c) d e;
|
||||
f = 3;
|
||||
}
|
Loading…
Reference in New Issue
Block a user