about summary refs log blame commit diff
path: root/tvix/eval/src/tests/tvix_tests/eval-fail-builtins-tojson-tostring-strong.nix
blob: d1c72dc6783a7904f90c3cda15b1b5441fc641dd (plain) (tree)
1
2
3
4
5
6





                                                                      
# String coercions when using builtins.toJSON on an attribute set with
# a `__toString` attribute should be weak.
builtins.toJSON {
  __toString = self: self.x;
  x = 42;
}