-
Notifications
You must be signed in to change notification settings - Fork 833
function implicit conversion the same way as fun x
#17487
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
vzarytovskii
merged 22 commits into
dotnet:main
from
edgarfgp:fix-function-implicit-convertion
Aug 10, 2024
Merged
Changes from 6 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
725e8cb
`function` implicit conversion the same way as `fun x`
edgarfgp bfcd2d8
release notes
edgarfgp 3932861
Merge branch 'main' into fix-function-implicit-convertion
edgarfgp 24b789b
Update src/Compiler/Checking/Expressions/CheckExpressions.fs
edgarfgp 5bb9415
Merge branch 'main' into fix-function-implicit-convertion
edgarfgp 358d296
More test cases
edgarfgp da5d09e
Revert "More test cases"
edgarfgp 516cf11
Merge branch 'main' into fix-function-implicit-convertion
edgarfgp 581be73
Handle all branches of match-lambdas
brianrourkeboll 589a829
Add a couple more match-lambda tests
brianrourkeboll 5ed6fce
One more
brianrourkeboll f393219
Add comment
brianrourkeboll b8ea540
Merge pull request #6 from brianrourkeboll/all-branches
edgarfgp b7da421
Merge branch 'main' into fix-function-implicit-convertion
vzarytovskii 81b75fd
Struct tuples
brianrourkeboll 9554c3c
Merge pull request #7 from brianrourkeboll/struct-tuples
edgarfgp bc4cb06
Merge branch 'main' into fix-function-implicit-convertion
edgarfgp 939707f
Merge branch 'main' into fix-function-implicit-convertion
edgarfgp 820352c
Merge branch 'main' into fix-function-implicit-convertion
edgarfgp 7146e29
Merge branch 'main' into fix-function-implicit-convertion
edgarfgp 7003763
Merge branch 'main' into fix-function-implicit-convertion
edgarfgp 95214f5
Merge branch 'main' into fix-function-implicit-convertion
edgarfgp File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
...icGrammarElements/MemberDefinitions/OverloadingMembers/OverloadResolutionUsingFunction.fs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| open System | ||
| let ae = new AggregateException() | ||
|
|
||
| ae.Handle(fun e -> | ||
| match e with | ||
| | :? OperationCanceledException -> true | ||
| | _ -> false | ||
| ) | ||
|
|
||
| ae.Handle(function | ||
| | :? OperationCanceledException -> true | ||
| | _ -> false | ||
| ) | ||
|
|
||
| ae.Handle( | ||
| Func<exn,bool>( | ||
| function | ||
| | :? OperationCanceledException -> true | ||
| | _ -> false | ||
| )) | ||
|
|
||
| let m () = | ||
| fun x ->(function x -> function y -> function z -> <@ x + y + z @>) | ||
|
|
||
| let f () = | ||
| (function | ||
| | None -> fun x -> x + 2 | ||
| | Some f -> f) | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.