- 
                Notifications
    You must be signed in to change notification settings 
- Fork 834
Closed
Labels
Milestone
Description
Please provide a succinct description of the issue.
Repro steps
Provide the steps required to reproduce the problem:
- Create a console project with this code
type Foo() =
    let sb = System.Text.StringBuilder()
    member _.Bar(s: System.ReadOnlySpan<char>) = sb.Append(s) |> ignore
let foo = Foo()
let foos = "foo"
foo.Bar($"{foos} is bar")- Build and run the project
Expected behavior
InvalidProgramException
Actual behavior
InvalidProgramException
Known workarounds
- Use let binding for interpolated string and use that in function call
- Use stringinstead ofReadOnlySpan<char>
- Do not use string interpolation
Related information
Provide any related information (optional):
- Windows 11
- .NET 9 RC1
- Version 17.12.0 Preview 2.0
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
New