You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Interpolated strings in F# support the format specifiers described in the F# Plain Text Formatting documentation. This includes producing a literal % character by prefixing it with another %.
This no longer works when the sequence of characters is immediately followed by a format specifier.
Repro steps
Microsoft (R) F# Interactive version 12.9.100.0for F# 9.0>letx="abc";;valx:string = "abc"
> $"%%%s{x}%%";;valit:string = "abc%"
Note that this works as expected in F# 8.0:
Microsoft (R) F# Interactive version 12.8.400.0for F# 8.0>letx="abc";;valx:string = "abc"
> $"%%%s{x}%%";;valit:string = "%abc%"
Related information
Tested with sdk-9.0.101-macos-arm64.
The text was updated successfully, but these errors were encountered:
Interpolated strings in F# support the format specifiers described in the F# Plain Text Formatting documentation. This includes producing a literal
%
character by prefixing it with another%
.This no longer works when the sequence of characters is immediately followed by a format specifier.
Repro steps
Note that this works as expected in F# 8.0:
Related information
Tested with
sdk-9.0.101-macos-arm64
.The text was updated successfully, but these errors were encountered: