8 lines
129 B
Nix
8 lines
129 B
Nix
|
# identifiers in inherits can be string-like expressions
|
||
|
|
||
|
let
|
||
|
set = {
|
||
|
inherit ({ value = 42; }) "value";
|
||
|
};
|
||
|
in set.value
|