about summary refs log tree commit diff
path: root/tests/lang/eval-okay-tojson.nix
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lang/eval-okay-tojson.nix')
-rw-r--r--tests/lang/eval-okay-tojson.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/lang/eval-okay-tojson.nix b/tests/lang/eval-okay-tojson.nix
index c046ba4ae59b..ce67943bead5 100644
--- a/tests/lang/eval-okay-tojson.nix
+++ b/tests/lang/eval-okay-tojson.nix
@@ -9,4 +9,5 @@ builtins.toJSON
     h = [ "a" [ "b" { "foo\nbar" = {}; } ] ];
     i = 1 + 2;
     j = 1.44;
+    k = { __toString = self: self.a; a = "foo"; };
   }