-
Notifications
You must be signed in to change notification settings - Fork 847
Fix srtp constraint printing #9728
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
cartermp
merged 11 commits into
dotnet:master
from
abelbraaksma:fix-srtp-constraint-printing
Jul 22, 2020
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
8e3b4c8
Fix #5768
realvictorprm 759ec97
Adding regression test.
realvictorprm 1ca6056
Fix test to expect an error.
realvictorprm 2d34b07
Apply review, move and add new test to typecheck\sigs.
realvictorprm c7ab8de
Merge branch 'master' into srtp_constraint_printing_fix
realvictorprm df423c8
Rename neg111 to neg112 to ease merging
abelbraaksma af63f3c
Merge with 'master' and resolve conflicts
abelbraaksma 6c2b3e6
Bring layoutReturnType into scope, and use instead of layoutTypeWithI…
abelbraaksma 634fe7c
Fix test neg112 to use proper directory
abelbraaksma 0b27798
Fix tests that suggest overloads to use parens around returned functions
abelbraaksma 43deb2c
Mention correct file and col numbers in new neg112 test
abelbraaksma 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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
|
|
||
| neg112.fs(20,49,20,62): typecheck error FS0001: A type parameter is missing a constraint 'when (Tuple or ^options) : (static member TupleMap : ^options * Tuple -> (('item -> ^value) -> ^values))' | ||
|
|
||
| neg112.fs(20,31,20,39): typecheck error FS0043: A type parameter is missing a constraint 'when (Tuple or ^options) : (static member TupleMap : ^options * Tuple -> (('item -> ^value) -> ^values))' | ||
|
|
||
| neg112.fs(20,31,20,39): typecheck error FS0043: A type parameter is missing a constraint 'when (Tuple or ^options) : (static member TupleMap : ^options * Tuple -> (('item -> ^value) -> ^values))' |
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,22 @@ | ||
| module Something | ||
| type Tuple = | ||
| static member inline TupleMap ((a, b), _ : Tuple) = fun f -> (f a, f b) | ||
| static member inline TupleMap ((a, b, c), _ : Tuple) = fun f -> (f a, f b, f c) | ||
| static member inline TupleMap ((a, b, c, d), _ : Tuple) = fun f -> (f a, f b, f c, f d) | ||
|
|
||
| static member inline Map f (x: 'Tin) : 'Tout = | ||
| let inline call_2 (a: ^a, b : ^b) = ((^a or ^b) : (static member TupleMap : ^b * _ -> ^t) (b, a)) | ||
| call_2 (Unchecked.defaultof<Tuple>, x) f | ||
|
|
||
| type IOption<'T> = | ||
| abstract member Value : 'T | ||
|
|
||
| let inline tupleMap f x = Tuple.Map f x | ||
|
|
||
| let inline addOptionValues< ^value, ^options, ^values, 'item when | ||
| 'item :> IOption< ^value>> | ||
| (addUp : ^values -> ^value, sourceOptions : ^options) = | ||
| let getValue (i : 'item) = i.Value | ||
| let allValues : ^values = tupleMap getValue sourceOptions | ||
| let result : ^value = addUp allValues | ||
| result |
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.