tests/functional2/lang: Migrate builtins.toJSON
Change-Id: Ic740ab1fe0792c7e7596ae8a9beb9e76b37d6284
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
error:
|
||||
… while calling the 'toJSON' builtin
|
||||
at /pwd/in.nix:1:1:
|
||||
1| builtins.toJSON { foo = a: 1; }
|
||||
| ^
|
||||
2|
|
||||
|
||||
… while evaluating attribute 'foo'
|
||||
at /pwd/in.nix:1:19:
|
||||
1| builtins.toJSON { foo = a: 1; }
|
||||
| ^
|
||||
2|
|
||||
|
||||
error: cannot convert a function to JSON
|
||||
at /pwd/in.nix:1:19:
|
||||
1| builtins.toJSON { foo = a: 1; }
|
||||
| ^
|
||||
2|
|
||||
Reference in New Issue
Block a user