blob: ec6f8d947cecd254c5f8abbf344a590933f1da55 (
plain) (
tree)
|
|
# Attribute sets with a `__toString` attribute JSON-serialise with a
# string coercion of the function call result.
builtins.toJSON {
__toString = self: "it's " + (builtins.toString (self.x * self.y));
x = 21;
y = 2;
}
|