rcl/golden/error/runtime_fstring_not_formattable.test
Ruud van Asseldonk 91a2aee986 Improve formatting of builtin values
This fixes a case discovered by the new Value/CST formatter fuzzer,
where formatting a builtin function would line break as CST but not as
value. Now it will also break as value.
2024-06-15 19:05:26 +02:00

10 lines
277 B
Text

f"This cannot be interpolated: {{x = 1}.contains}."
# output:
stdin:1:33
1 │ f"This cannot be interpolated: {{x = 1}.contains}."
╵ ^~~~~~~~~~~~~~~~
Error: This value cannot be interpolated into a string:
«method Dict.contains»