piegames
0a8888d1c7
Shows for how long these tests have not been touched by anyone …
Change-Id: I3d0c1209a86283ddb012db4e7d45073264fdd0eb
12 lines
206 B
Nix
12 lines
206 B
Nix
let
|
|
as = { x = 123; y = 456; } // { z = 789; } // { z = 987; };
|
|
|
|
A = "a";
|
|
Z = "z";
|
|
|
|
in
|
|
if builtins.hasAttr A as then
|
|
builtins.getAttr A as
|
|
else
|
|
assert builtins.hasAttr Z as; builtins.getAttr Z as
|