-
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.
FunctionAnnotationAction: improvements for top-level tuple patterns (#…
…759)
- Loading branch information
Showing
18 changed files
with
108 additions
and
9 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
2 changes: 1 addition & 1 deletion
2
.../data/features/intentions/specifyTypes/Function - Parameters - Pattern 01 - Tuple.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
module Module | ||
|
||
let f{caret} ((a, b): int * int) : int = | ||
let f{caret} (a: int, b: int) : int = | ||
a + b |
4 changes: 4 additions & 0 deletions
4
...features/intentions/specifyTypes/Function - Parameters - Pattern 06 - Tuple with as 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,4 @@ | ||
module Module | ||
|
||
let f{caret} (a, b as c) = | ||
a + b |
4 changes: 4 additions & 0 deletions
4
...res/intentions/specifyTypes/Function - Parameters - Pattern 06 - Tuple with as 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,4 @@ | ||
module Module | ||
|
||
let f{caret} (a: int, b: int as c) : int = | ||
a + b |
4 changes: 4 additions & 0 deletions
4
...features/intentions/specifyTypes/Function - Parameters - Pattern 07 - Tuple with as 02.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 | ||
|
||
let f{caret} (a: int, b as c) = | ||
a + b |
4 changes: 4 additions & 0 deletions
4
...res/intentions/specifyTypes/Function - Parameters - Pattern 07 - Tuple with as 02.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 | ||
|
||
let f{caret} (a: int, b: int as c) : int = | ||
a + b |
4 changes: 4 additions & 0 deletions
4
...features/intentions/specifyTypes/Function - Parameters - Pattern 08 - Tuple with as 03.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 | ||
|
||
let f{caret} ((a, b) as c) = | ||
a + b |
4 changes: 4 additions & 0 deletions
4
...res/intentions/specifyTypes/Function - Parameters - Pattern 08 - Tuple with as 03.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 | ||
|
||
let f{caret} ((a: int, b: int) as c) : int = | ||
a + b |
4 changes: 4 additions & 0 deletions
4
.../features/intentions/specifyTypes/Function - Parameters - Pattern 09 - Nested 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,4 @@ | ||
module Module | ||
|
||
let f{caret} ((a, b)) = | ||
a + b |
4 changes: 4 additions & 0 deletions
4
...ures/intentions/specifyTypes/Function - Parameters - Pattern 09 - Nested 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,4 @@ | ||
module Module | ||
|
||
let f{caret} ((a: int, b: int)) : int = | ||
a + b |
4 changes: 4 additions & 0 deletions
4
.../features/intentions/specifyTypes/Function - Parameters - Pattern 10 - Nested tuple 02.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 | ||
|
||
let f{caret} ((a, b), c) = | ||
a + b + c |
4 changes: 4 additions & 0 deletions
4
...ures/intentions/specifyTypes/Function - Parameters - Pattern 10 - Nested tuple 02.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 | ||
|
||
let f{caret} ((a, b): int * int, c: int) : int = | ||
a + b + c |
5 changes: 5 additions & 0 deletions
5
...eatures/intentions/specifyTypes/Function - Parameters - Pattern 11 - Active pattern 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 (|TryParseBool|_|) (_: string) = Some(true) | ||
|
||
let f{caret} (TryParseBool enabled) = () |
5 changes: 5 additions & 0 deletions
5
...es/intentions/specifyTypes/Function - Parameters - Pattern 11 - Active pattern 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 (|TryParseBool|_|) (_: string) = Some(true) | ||
|
||
let f{caret} (TryParseBool enabled: string) : unit = () |
5 changes: 5 additions & 0 deletions
5
...eatures/intentions/specifyTypes/Function - Parameters - Pattern 12 - Active pattern 02.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 (|TryParseBool|_|) (_: string) = Some(true) | ||
|
||
let f{caret} (TryParseBool enabled as x) = () |
5 changes: 5 additions & 0 deletions
5
...es/intentions/specifyTypes/Function - Parameters - Pattern 12 - Active pattern 02.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 (|TryParseBool|_|) (_: string) = Some(true) | ||
|
||
let f{caret} (TryParseBool enabled as x: string) : unit = () |
10 changes: 10 additions & 0 deletions
10
...Sharp/test/data/features/intentions/specifyTypes/availability/Let bindings - Tuples 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,10 @@ | ||
do | ||
let f1{on} (a, b): int = a + b | ||
let f2{on} (a: int, (b: int, c: int)): int = 1 | ||
let f3{on} (a: int, b as c): int = 1 | ||
|
||
let g1{off} (a: int, (b, c): int * int): int = 1 | ||
let g2{off} (a: int, b: int as c): int = 1 | ||
let g3{off} (a, b as c: int * int): int = 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