Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docfx/docs/caveats.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ A call with **15 or more** arguments throws `TypeLoadException: Cannot Emit long

## C# optional parameters

The DLR does not fill CLR optional defaults. `obj?Opt(5)` and `namedArg "a" 5` both fail (`No overload takes 1 arguments`) when `Opt` is `Opt(int a, int b = 0)`. Pass every argument. Named args work when the full set is present.
The DLR does not fill CLR optional defaults. `obj?Opt(5)` and `obj?Opt(Dyn.namedArg "a" 5)` both fail (`No overload takes 1 arguments`) when `Opt` is `Opt(int a, int b = 0)`. `Dyn.namedArg` only builds an `InvokeArg`; the miss is on the call. Pass every argument. Named args work when the full set is present.

## Function-typed results delay the call

Expand Down