rcl/golden/error_json/builtin_method.test
Ruud van Asseldonk 84523fd33c Save body span info in the loader
This fixes a longstanding issue where reporting errors that we have to
blame on just the document's result in general got blamed on its full
span, which is often a comment and not the offending value. Now we blame
it on the inner body expression, which is more natural.
2024-06-18 20:22:33 +02:00

9 lines
197 B
Text

// Note, .len is an unserializable method, we don't call it!
"frobnicator".len
# output:
stdin:2:1
2 │ "frobnicator".len
╵ ^~~~~~~~~~~~~~~~~
Error: Methods cannot be exported as json.