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
{{ message }}
Repository navigation
Problem consuming C# API with default value for parameter #13519
I tested this issue against the current F# 10 SDK (.NET 9.0) and it now compiles successfully without needing to specify the optional parameters explicitly:
openFluentAssertions.JsonopenNewtonsoft.Json.LinqletassertJsonEqual expected actual =letexpectedToken= JToken.Parse expected
letactualToken= JToken.Parse actual
actualToken.Should().BeEquivalentTo(expectedToken)|> ignore // ✅ now compiles
This was fixed as part of F# support for calling C# methods with optional/default parameters by omitting optional arguments (related to C# interop improvements in F# 8+). The workaround of specifying expected = expectedToken, because = "" is no longer needed.
This issue may be eligible for closure. Could a maintainer verify and close if confirmed?
Activity
[-]Problem consuming API with default value[/-][+]Problem consuming C# API with default value for parameter[/+]dsyme commentedon Sep 21, 2022
Looks like this involves interop with methods that have both omitted optional arguments and ParamArray arguments:
github-actions commentedon Mar 20, 2026
🤖 This is an automated response from Repo Assist.
I tested this issue against the current F# 10 SDK (.NET 9.0) and it now compiles successfully without needing to specify the optional parameters explicitly:
This was fixed as part of F# support for calling C# methods with optional/default parameters by omitting optional arguments (related to C# interop improvements in F# 8+). The workaround of specifying
expected = expectedToken, because = ""is no longer needed.This issue may be eligible for closure. Could a maintainer verify and close if confirmed?
auduchinok commentedon Mar 23, 2026
Let's add a test before closing?
Add regression test for #13519: C# optional parameters from F#
Add ParamArray + optional params regression test for #13519
Add regression test: #13519, C# optional parameters from F# (#19473)
Add regression test: #13519, C# optional parameters from F# (#19473)
Add regression test: #13519, C# optional parameters from F# (#19473)
Add regression test: #13519, C# optional parameters from F# (#19473)
Syncing release/dev18.6 with VS rel/insiders (#19699)