test(xatu): cover clean let ordering
This commit is contained in:
18
src/xatu/testdata/clean.nix
vendored
18
src/xatu/testdata/clean.nix
vendored
@@ -1,6 +1,22 @@
|
|||||||
{ pkgs }:
|
{ pkgs }:
|
||||||
|
|
||||||
{
|
let
|
||||||
|
first = 1;
|
||||||
|
second = first;
|
||||||
|
in {
|
||||||
|
firstField = first;
|
||||||
|
secondField = second;
|
||||||
|
nested = let
|
||||||
|
innerSecond = innerFirst;
|
||||||
|
innerFirst = first;
|
||||||
|
in {
|
||||||
|
result = innerSecond;
|
||||||
|
};
|
||||||
|
parameter = first: let
|
||||||
|
usesParameter = first;
|
||||||
|
in {
|
||||||
|
result = usesParameter;
|
||||||
|
};
|
||||||
path = ./. + "/foo";
|
path = ./. + "/foo";
|
||||||
url = "https://example.com";
|
url = "https://example.com";
|
||||||
inherit pkgs;
|
inherit pkgs;
|
||||||
|
|||||||
Reference in New Issue
Block a user