Skip to content
This repository was archived by the owner on Dec 23, 2024. It is now read-only.

Commit cdc765d

Browse files
committed
New error messages
1 parent 82ec92b commit cdc765d

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

tests/fsharpqa/Source/Conformance/Expressions/DataExpressions/QueryExpressions/E_BadGroupValBy01.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// #Conformance #DataExpressions #Query
22
// DevDiv:179889, groupValBy was hard to use with poor diagnostics
3-
//<Expects status="error" span="(9,9-9,19)" id="FS3099">'groupValBy' is used with an incorrect number of arguments\. This is a custom operation in this query or computation expression\. Expected 2 argument\(s\), but given 0\.$</Expects>
4-
//<Expects status="error" span="(15,9-15,19)" id="FS3099">'groupValBy' is used with an incorrect number of arguments\. This is a custom operation in this query or computation expression\. Expected 2 argument\(s\), but given 1\.$</Expects>
3+
//<Expects status="error" span="(8,9-8,28)" id="FS0001">This expression was expected to have type. 'Linq\.QuerySource\<'a,'b\> \* \('a \-\> 'c\) \* \('a \-\> 'd\)' .but here has type. 'Linq\.QuerySource\<int,System\.Collections\.IEnumerable\>'</Expects>
4+
//<Expects status="error" span="(15,9-15,21)" id="FS0501">The member or object constructor 'GroupValBy' takes 3 argument\(s\) but is here given 2\. The required signature is 'member Linq\.QueryBuilder\.GroupValBy \: source\:Linq\.QuerySource\<'T,'Q\> \* resultSelector\:\('T \-\> 'Value\) \* keySelector\:\('T \-\> 'Key\) \-\> Linq\.QuerySource\<System\.Linq\.IGrouping\<'Key,'Value\>,'Q\> when 'Key \: equality'\.$</Expects>
55

66
let q1 =
77
query {

tests/fsharpqa/Source/Conformance/Expressions/DataExpressions/QueryExpressions/E_BadGroupValBy02.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// #Conformance #DataExpressions #Query
22
// DevDiv:210830, groupValBy with poor diagnostics
3-
//<Expects status="error" span="(9,6-9,32)" id="FS0001">This expression was expected to have type.+'System\.Linq\.IGrouping<'a,'b>'.+but here has type.+'unit'</Expects>
3+
//<Expects status="error" span="(9,6-9,32)" id="FS0501">The member or object constructor 'GroupValBy' takes 3 argument\(s\) but is here given 4\. The required signature is 'member Linq\.QueryBuilder\.GroupValBy \: source\:Linq\.QuerySource\<'T,'Q\> \* resultSelector\:\('T \-\> 'Value\) \* keySelector\:\('T \-\> 'Key\) \-\> Linq\.QuerySource\<System\.Linq\.IGrouping\<'Key,'Value\>,'Q\> when 'Key \: equality'\.</Expects>
44

55
let words = ["blueberry"; "chimpanzee"; ]
66
let wordGroups =

tests/fsharpqa/Source/Conformance/Expressions/DataExpressions/QueryExpressions/E_WhitespaceErrors01.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// #Conformance #DataExpressions #Query
22
// DevDiv:188241, just baselines errors around spacing
3-
//<Expects status="error" span="(15,13-15,18)" id="FS3099">'where' is used with an incorrect number of arguments\. This is a custom operation in this query or computation expression\. Expected 1 argument\(s\), but given 3\.$</Expects>
3+
//<Expects status="error" span="(15,13-16,25)" id="FS0501">The member or object constructor 'Where' takes 2 argument\(s\) but is here given 4\. The required signature is 'member Linq\.QueryBuilder\.Where : source:Linq\.QuerySource<'T,'Q> \* predicate:\('T \-> bool\) \-> Linq\.QuerySource<'T,'Q>'\.$</Expects>
44

55
let q1 = // no errors
66
query {

tests/fsharpqa/Source/Conformance/Expressions/DataExpressions/QueryExpressions/env.lst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ NoMT SOURCE=ForWhereJoin01.fs SCFLAGS="--test:ErrorRange
1313
NoMT SOURCE=E_WhitespaceErrors01.fs SCFLAGS="--test:ErrorRanges" # E_WhitespaceErrors01.fs
1414
NoMT SOURCE=E_WhitespaceErrors02.fs SCFLAGS="--test:ErrorRanges" # E_WhitespaceErrors02.fs
1515
NoMT SOURCE=E_WhitespaceErrors03.fs SCFLAGS="--test:ErrorRanges" # E_WhitespaceErrors03.fs
16-
NoMT SOURCE=E_BadGroupValBy01.fs SCFLAGS="--test:ErrorRanges" # E_BadGroupValBy01.fs
16+
NoMT SOURCE=E_BadGroupValBy01.fs SCFLAGS="--test:ErrorRanges --flaterrors" # E_BadGroupValBy01.fs
1717
NoMT SOURCE=E_BadGroupValBy02.fs SCFLAGS="--test:ErrorRanges --flaterrors" # E_BadGroupValBy02.fs
1818
NoMT SOURCE=E_FirstOrDefaultWithNulls01.fs SCFLAGS="--test:ErrorRanges -r:Utils.dll" # E_FirstOrDefaultWithNulls01.fs
1919

0 commit comments

Comments
 (0)