mirror of
https://github.com/ruuda/rcl.git
synced 2025-12-23 04:47:19 +00:00
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.
10 lines
277 B
Text
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»
|