-
Notifications
You must be signed in to change notification settings - Fork 57
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
25 changed files
with
107 additions
and
0 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
ReSharper.FSharp/test/data/features/intentions/specifyTypes/patterns/Ands pat 01.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,5 @@ | ||
module Module | ||
|
||
let (|Bool|) (x: int) = true | ||
|
||
let f (x{caret} & Bool(_)) = () |
5 changes: 5 additions & 0 deletions
5
ReSharper.FSharp/test/data/features/intentions/specifyTypes/patterns/Ands pat 01.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,5 @@ | ||
module Module | ||
|
||
let (|Bool|) (x: int) = true | ||
|
||
let f (x: int{caret} & Bool(_)) = () |
3 changes: 3 additions & 0 deletions
3
ReSharper.FSharp/test/data/features/intentions/specifyTypes/patterns/As pat 01.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,3 @@ | ||
module Module | ||
|
||
let f (x, y as z{caret}) = () |
3 changes: 3 additions & 0 deletions
3
ReSharper.FSharp/test/data/features/intentions/specifyTypes/patterns/As pat 01.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,3 @@ | ||
module Module | ||
|
||
let f (x, y as (z: 'a * 'b){caret}) = () |
3 changes: 3 additions & 0 deletions
3
ReSharper.FSharp/test/data/features/intentions/specifyTypes/patterns/Lambda 01.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,3 @@ | ||
module Module | ||
|
||
fun x{caret} -> x + 1 |
3 changes: 3 additions & 0 deletions
3
ReSharper.FSharp/test/data/features/intentions/specifyTypes/patterns/Lambda 01.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,3 @@ | ||
module Module | ||
|
||
fun (x: int){caret} -> x + 1 |
3 changes: 3 additions & 0 deletions
3
ReSharper.FSharp/test/data/features/intentions/specifyTypes/patterns/Parameter 01.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,3 @@ | ||
module Module | ||
|
||
let f x{caret} = x + 1 |
3 changes: 3 additions & 0 deletions
3
ReSharper.FSharp/test/data/features/intentions/specifyTypes/patterns/Parameter 01.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,3 @@ | ||
module Module | ||
|
||
let f (x: int){caret} = x + 1 |
4 changes: 4 additions & 0 deletions
4
...per.FSharp/test/data/features/intentions/specifyTypes/patterns/Parameter 02 - Optional.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,4 @@ | ||
module Module | ||
|
||
type A = | ||
member _.M1(?x{caret}) = x.Value + 1 |
4 changes: 4 additions & 0 deletions
4
...Sharp/test/data/features/intentions/specifyTypes/patterns/Parameter 02 - Optional.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,4 @@ | ||
module Module | ||
|
||
type A = | ||
member _.M1(?x: int{caret}) = x.Value + 1 |
5 changes: 5 additions & 0 deletions
5
ReSharper.FSharp/test/data/features/intentions/specifyTypes/patterns/Record field 01.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,5 @@ | ||
module Module | ||
|
||
type R = { A: int } | ||
|
||
let f { A = a{caret} } = () |
5 changes: 5 additions & 0 deletions
5
ReSharper.FSharp/test/data/features/intentions/specifyTypes/patterns/Record field 01.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,5 @@ | ||
module Module | ||
|
||
type R = { A: int } | ||
|
||
let f { A = (a: int){caret} } = () |
3 changes: 3 additions & 0 deletions
3
ReSharper.FSharp/test/data/features/intentions/specifyTypes/patterns/Tuple 01.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,3 @@ | ||
module Module | ||
|
||
let f (a{caret}, b) = a + b |
3 changes: 3 additions & 0 deletions
3
ReSharper.FSharp/test/data/features/intentions/specifyTypes/patterns/Tuple 01.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,3 @@ | ||
module Module | ||
|
||
let f (a: int{caret}, b) = a + b |
3 changes: 3 additions & 0 deletions
3
ReSharper.FSharp/test/data/features/intentions/specifyTypes/patterns/Tuple 02 - Top level.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,3 @@ | ||
module Module | ||
|
||
let a, b{caret} = 1, 1 |
3 changes: 3 additions & 0 deletions
3
...r.FSharp/test/data/features/intentions/specifyTypes/patterns/Tuple 02 - Top level.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,3 @@ | ||
module Module | ||
|
||
let a, (b: int){caret} = 1, 1 |
3 changes: 3 additions & 0 deletions
3
ReSharper.FSharp/test/data/features/intentions/specifyTypes/patterns/Tuple 03 - As.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,3 @@ | ||
module Module | ||
|
||
let f (x{caret}, y as z) = () |
3 changes: 3 additions & 0 deletions
3
ReSharper.FSharp/test/data/features/intentions/specifyTypes/patterns/Tuple 03 - As.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,3 @@ | ||
module Module | ||
|
||
let f (x: 'a{caret}, y as z) = () |
3 changes: 3 additions & 0 deletions
3
ReSharper.FSharp/test/data/features/intentions/specifyTypes/patterns/Union case 01.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,3 @@ | ||
module Module | ||
|
||
let f (Some(x{caret})) = x + 1 |
3 changes: 3 additions & 0 deletions
3
ReSharper.FSharp/test/data/features/intentions/specifyTypes/patterns/Union case 01.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,3 @@ | ||
module Module | ||
|
||
let f (Some(x: int{caret})) = x + 1 |
3 changes: 3 additions & 0 deletions
3
...arper.FSharp/test/data/features/intentions/specifyTypes/patterns/Union case 02 - Named.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,3 @@ | ||
module Module | ||
|
||
let f (Some(Value = x{caret})) = x + 1 |
3 changes: 3 additions & 0 deletions
3
....FSharp/test/data/features/intentions/specifyTypes/patterns/Union case 02 - Named.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,3 @@ | ||
module Module | ||
|
||
let f (Some(Value = (x: int){caret})) = x + 1 |
3 changes: 3 additions & 0 deletions
3
...rper.FSharp/test/data/features/intentions/specifyTypes/patterns/Union case 03 - Parens.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,3 @@ | ||
module Module | ||
|
||
let f (Some x{caret}) = x + 1 |
3 changes: 3 additions & 0 deletions
3
...FSharp/test/data/features/intentions/specifyTypes/patterns/Union case 03 - Parens.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,3 @@ | ||
module Module | ||
|
||
let f (Some(x: int){caret}) = x + 1 |
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