tests/functional2/lang: Migrate dup-attrs tests
Change-Id: Ia5976229c8b2e6bf89d821b5676a9a397e4539d7
This commit is contained in:
@@ -1,5 +0,0 @@
|
||||
error: attribute 'a.b.c' already defined at /pwd/eval-fail-dupAttr-deep.nix:1:3
|
||||
at /pwd/eval-fail-dupAttr-deep.nix:1:14:
|
||||
1| { a.b.c = 1; a.b.c.a.a = 1; }
|
||||
| ^
|
||||
2|
|
||||
@@ -1,5 +0,0 @@
|
||||
error: attribute 'a' already defined at /pwd/eval-fail-dupAttr-inherit.nix:1:16
|
||||
at /pwd/eval-fail-dupAttr-inherit.nix:1:19:
|
||||
1| { inherit ({}) a; a.b = 1; }
|
||||
| ^
|
||||
2|
|
||||
@@ -1,5 +0,0 @@
|
||||
error: attribute 'a' already defined at /pwd/eval-fail-dupAttr.nix:1:3
|
||||
at /pwd/eval-fail-dupAttr.nix:1:10:
|
||||
1| { a = 1; a.b = 1; }
|
||||
| ^
|
||||
2|
|
||||
@@ -1,6 +0,0 @@
|
||||
error: attribute 'x' already defined at /pwd/parse-fail-dup-attrs-1.nix:1:3
|
||||
at /pwd/parse-fail-dup-attrs-1.nix:3:3:
|
||||
2| y = 456;
|
||||
3| x = 789;
|
||||
| ^
|
||||
4| }
|
||||
@@ -1,6 +0,0 @@
|
||||
error: attribute 'x' already defined at /pwd/parse-fail-dup-attrs-2.nix:9:5
|
||||
at /pwd/parse-fail-dup-attrs-2.nix:10:18:
|
||||
9| x = 789;
|
||||
10| inherit (as) x;
|
||||
| ^
|
||||
11| };
|
||||
@@ -1,6 +0,0 @@
|
||||
error: attribute 'x' already defined at /pwd/parse-fail-dup-attrs-3.nix:9:5
|
||||
at /pwd/parse-fail-dup-attrs-3.nix:10:18:
|
||||
9| x = 789;
|
||||
10| inherit (as) x;
|
||||
| ^
|
||||
11| };
|
||||
@@ -1,6 +0,0 @@
|
||||
error: attribute 'services.ssh.port' already defined at /pwd/parse-fail-dup-attrs-4.nix:2:3
|
||||
at /pwd/parse-fail-dup-attrs-4.nix:3:3:
|
||||
2| services.ssh.port = 22;
|
||||
3| services.ssh.port = 23;
|
||||
| ^
|
||||
4| }
|
||||
@@ -1,6 +0,0 @@
|
||||
error: attribute 'x' already defined at /pwd/parse-fail-dup-attrs-7.nix:6:13
|
||||
at /pwd/parse-fail-dup-attrs-7.nix:7:13:
|
||||
6| inherit x;
|
||||
7| inherit x;
|
||||
| ^
|
||||
8| };
|
||||
@@ -0,0 +1,5 @@
|
||||
error: attribute 'a.b.c' already defined at /pwd/in.nix:1:3
|
||||
at /pwd/in.nix:1:14:
|
||||
1| { a.b.c = 1; a.b.c.a.a = 1; }
|
||||
| ^
|
||||
2|
|
||||
+3
-3
@@ -1,13 +1,13 @@
|
||||
error:
|
||||
… while evaluating the attribute 'set'
|
||||
at /pwd/eval-fail-dup-dynamic-attrs.nix:2:3:
|
||||
at /pwd/in.nix:2:3:
|
||||
1| {
|
||||
2| set = { "${"" + "b"}" = 1; };
|
||||
| ^
|
||||
3| set = { "${"b" + ""}" = 2; };
|
||||
|
||||
error: dynamic attribute 'b' already defined at /pwd/eval-fail-dup-dynamic-attrs.nix:2:11
|
||||
at /pwd/eval-fail-dup-dynamic-attrs.nix:3:11:
|
||||
error: dynamic attribute 'b' already defined at /pwd/in.nix:2:11
|
||||
at /pwd/in.nix:3:11:
|
||||
2| set = { "${"" + "b"}" = 1; };
|
||||
3| set = { "${"b" + ""}" = 2; };
|
||||
| ^
|
||||
@@ -0,0 +1,5 @@
|
||||
error: attribute 'a' already defined at /pwd/in.nix:1:16
|
||||
at /pwd/in.nix:1:19:
|
||||
1| { inherit ({}) a; a.b = 1; }
|
||||
| ^
|
||||
2|
|
||||
@@ -0,0 +1,5 @@
|
||||
error: attribute 'a' already defined at /pwd/in.nix:1:3
|
||||
at /pwd/in.nix:1:10:
|
||||
1| { a = 1; a.b = 1; }
|
||||
| ^
|
||||
2|
|
||||
@@ -0,0 +1,6 @@
|
||||
error: attribute 'x' already defined at /pwd/in.nix:1:3
|
||||
at /pwd/in.nix:3:3:
|
||||
2| y = 456;
|
||||
3| x = 789;
|
||||
| ^
|
||||
4| }
|
||||
@@ -0,0 +1,6 @@
|
||||
error: attribute 'x' already defined at /pwd/in.nix:9:5
|
||||
at /pwd/in.nix:10:18:
|
||||
9| x = 789;
|
||||
10| inherit (as) x;
|
||||
| ^
|
||||
11| };
|
||||
@@ -0,0 +1,6 @@
|
||||
error: attribute 'x' already defined at /pwd/in.nix:9:5
|
||||
at /pwd/in.nix:10:18:
|
||||
9| x = 789;
|
||||
10| inherit (as) x;
|
||||
| ^
|
||||
11| };
|
||||
@@ -0,0 +1,6 @@
|
||||
error: attribute 'services.ssh.port' already defined at /pwd/in.nix:2:3
|
||||
at /pwd/in.nix:3:3:
|
||||
2| services.ssh.port = 22;
|
||||
3| services.ssh.port = 23;
|
||||
| ^
|
||||
4| }
|
||||
@@ -0,0 +1,6 @@
|
||||
error: attribute 'x' already defined at /pwd/in.nix:6:13
|
||||
at /pwd/in.nix:7:13:
|
||||
6| inherit x;
|
||||
7| inherit x;
|
||||
| ^
|
||||
8| };
|
||||
Reference in New Issue
Block a user