-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
403 additions
and
89 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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 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 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 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
47 changes: 47 additions & 0 deletions
47
ReSharper.FSharp/test/data/features/daemon/typeHints/Patterns 02 - Other.fs
This file contains 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,47 @@ | ||
module Test | ||
|
||
let _ = | ||
for i = 0 to 10 do () | ||
for i in Seq.empty do () | ||
function x -> () | ||
|
||
match [Some 5] with | ||
| [] -> () | ||
| [x] -> () | ||
| [x: int option] -> () | ||
| [x; y] -> () | ||
| [x; y: int option] -> () | ||
| [_; x] -> () | ||
| [_; _] -> () | ||
| [x; _; _] -> () | ||
| [x; _; Some 5] -> () | ||
| x :: tail -> () | ||
| _ :: (tail: int option list) -> () | ||
| x: int option :: tail -> () | ||
| x: int option :: _ -> () | ||
| x :: (tail: int option list) -> () | ||
| ((x :: tail): int option list) -> () | ||
| _ :: _ -> () | ||
| x :: _ -> () | ||
| _ :: x :: _ -> () | ||
| x :: _ :: _ -> () | ||
| x :: Some y :: _ -> () | ||
| x :: (y :: _) -> () | ||
| x :: y :: [] -> () | ||
| x :: [y] -> () | ||
| Some(x) :: tail -> () | ||
| [Some(x)] | ||
| [_; Some(x)] when let x = 5 in true -> | ||
let y = 5 in () | ||
|
||
match [[5]] with | ||
| [[]] -> () | ||
| [[]; x] -> () | ||
|
||
match [|5|] with | ||
| [||] -> () | ||
| [|x|] -> () | ||
| [|x; y|] -> () | ||
|
||
exception MyException of string | ||
try () with | MyException(x) -> () |
83 changes: 83 additions & 0 deletions
83
ReSharper.FSharp/test/data/features/daemon/typeHints/Patterns 02 - Other.fs.gold
This file contains 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,83 @@ | ||
module Test | ||
|
||
let _ = | ||
for i = 0 to 10 do () | ||
for i||(0) in Seq.empty do () | ||
function x||(1) -> () | ||
|
||
match [Some 5] with | ||
| []||(2) -> () | ||
| [x]||(3) -> () | ||
| [x: int option]||(4) -> () | ||
| [x; y]||(5) -> () | ||
| [x; y: int option]||(6) -> () | ||
| [_; x]||(7) -> () | ||
| [_; _]||(8) -> () | ||
| [x; _; _]||(9) -> () | ||
| [x; _; Some 5]||(10) -> () | ||
| x :: tail||(11) -> () | ||
| _ :: (tail: int option list)||(12) -> () | ||
| x: int option :: tail||(13) -> () | ||
| x: int option :: _||(14) -> () | ||
| x :: (tail: int option list)||(15) -> () | ||
| ((x :: tail): int option list) -> () | ||
| _ :: _||(16) -> () | ||
| x :: _||(17) -> () | ||
| _ :: x :: _||(18) -> () | ||
| x :: _ :: _||(19) -> () | ||
| x :: Some y :: _||(20) -> () | ||
| x :: (y :: _)||(21) -> () | ||
| x :: y :: []||(22) -> () | ||
| x :: [y]||(23) -> () | ||
| Some(x) :: tail||(24) -> () | ||
| [Some(x)]||(25) | ||
| [_; Some(x)] when let x||(26) = 5 in true -> | ||
let y||(27) = 5 in () | ||
|
||
match [[5]] with | ||
| [[]]||(28) -> () | ||
| [[]; x]||(29) -> () | ||
|
||
match [|5|] with | ||
| [||]||(30) -> () | ||
| [|x|]||(31) -> () | ||
| [|x; y|]||(32) -> () | ||
|
||
exception MyException of string | ||
try () with | MyException(x||(33)) -> () | ||
|
||
--------------------------------------------------------- | ||
(0): ReSharper Parameter Name Hint: : obj | ||
(1): ReSharper Parameter Name Hint: : obj | ||
(2): ReSharper Parameter Name Hint: : int option list | ||
(3): ReSharper Parameter Name Hint: : int option list | ||
(4): ReSharper Parameter Name Hint: : int option list | ||
(5): ReSharper Parameter Name Hint: : int option list | ||
(6): ReSharper Parameter Name Hint: : int option list | ||
(7): ReSharper Parameter Name Hint: : int option list | ||
(8): ReSharper Parameter Name Hint: : int option list | ||
(9): ReSharper Parameter Name Hint: : int option list | ||
(10): ReSharper Parameter Name Hint: : int option list | ||
(11): ReSharper Parameter Name Hint: : int option list | ||
(12): ReSharper Parameter Name Hint: : int option list | ||
(13): ReSharper Parameter Name Hint: : int option list | ||
(14): ReSharper Parameter Name Hint: : int option list | ||
(15): ReSharper Parameter Name Hint: : int option list | ||
(16): ReSharper Parameter Name Hint: : int option list | ||
(17): ReSharper Parameter Name Hint: : int option list | ||
(18): ReSharper Parameter Name Hint: : int option list | ||
(19): ReSharper Parameter Name Hint: : int option list | ||
(20): ReSharper Parameter Name Hint: : int option list | ||
(21): ReSharper Parameter Name Hint: : int option list | ||
(22): ReSharper Parameter Name Hint: : int option list | ||
(23): ReSharper Parameter Name Hint: : int option list | ||
(24): ReSharper Parameter Name Hint: : int option list | ||
(25): ReSharper Parameter Name Hint: : int option list | ||
(26): ReSharper Parameter Name Hint: : int | ||
(27): ReSharper Parameter Name Hint: : int | ||
(28): ReSharper Parameter Name Hint: : int list list | ||
(29): ReSharper Parameter Name Hint: : int list list | ||
(30): ReSharper Parameter Name Hint: : int array | ||
(31): ReSharper Parameter Name Hint: : int array | ||
(32): ReSharper Parameter Name Hint: : int array | ||
(33): ReSharper Parameter Name Hint: : string |
Oops, something went wrong.