You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/fsharp/typecheck/sigs/neg04.bsl
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -128,4 +128,4 @@ neg04.fs(159,47,159,57): typecheck error FS0692: This function value is being us
128
128
129
129
neg04.fs(163,54,163,67): typecheck error FS0692: This function value is being used to construct a delegate type whose signature includes a byref argument. You must use an explicit lambda expression taking 1 arguments.
130
130
131
-
neg04.fs(178,13,178,18): typecheck error FS0001: The type '('a -> unit)' does not support the 'equality' constraint because it is a function type
131
+
neg04.fs(178,13,178,18): typecheck error FS0001: The type ''a -> unit' does not support the 'equality' constraint because it is a function type
Copy file name to clipboardExpand all lines: tests/fsharp/typecheck/sigs/neg05.bsl
+22Lines changed: 22 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -24,3 +24,25 @@ neg05.fs(57,15,57,18): typecheck error FS1198: The generic member 'Pop' has been
24
24
neg05.fs(51,11,51,13): typecheck error FS0663: This type parameter has been used in a way that constrains it to always be 'unit'
25
25
26
26
neg05.fs(51,11,51,13): typecheck error FS0660: This code is less generic than required by its annotations because the explicit type variable 'a' could not be generalized. It was constrained to be 'unit'.
27
+
28
+
neg05.fs(12,3,12,9): typecheck error FS0842: This attribute cannot be applied to interface. Valid targets are: class, struct, parameter,return value
29
+
30
+
neg05.fs(14,5,15,8): typecheck error FS0927: The kind of the type specified by its attributes does not match the kind implied by its definition
31
+
32
+
neg05.fs(17,3,17,8): typecheck error FS0842: This attribute cannot be applied to interface. Valid targets are: class
33
+
34
+
neg05.fs(19,5,20,8): typecheck error FS0927: The kind of the type specified by its attributes does not match the kind implied by its definition
35
+
36
+
neg05.fs(24,5,25,8): typecheck error FS0927: The kind of the type specified by its attributes does not match the kind implied by its definition
37
+
38
+
neg05.fs(27,3,27,12): typecheck error FS0842: This attribute cannot be applied to class. Valid targets are: interface
39
+
40
+
neg05.fs(29,5,30,8): typecheck error FS0927: The kind of the type specified by its attributes does not match the kind implied by its definition
41
+
42
+
neg05.fs(32,3,32,8): typecheck error FS0842: This attribute cannot be applied to struct. Valid targets are: class
43
+
44
+
neg05.fs(34,5,35,8): typecheck error FS0927: The kind of the type specified by its attributes does not match the kind implied by its definition
45
+
46
+
neg05.fs(37,3,37,12): typecheck error FS0842: This attribute cannot be applied to struct. Valid targets are: interface
47
+
48
+
neg05.fs(39,5,40,8): typecheck error FS0927: The kind of the type specified by its attributes does not match the kind implied by its definition
Copy file name to clipboardExpand all lines: tests/fsharp/typecheck/sigs/neg07.bsl
-3Lines changed: 0 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,3 @@
1
-
2
-
neg07.fs(7,10,7,29): typecheck error FS0049: Uppercase variable identifiers should not generally be used in patterns,and may indicate a missing open declaration or a misspelt pattern name.
3
-
4
1
neg07.fs(24,13,24,23): typecheck error FS0039: The value or constructor 'UnionCase1' is not defined. Maybe you want one of the following:
Copy file name to clipboardExpand all lines: tests/fsharp/typecheck/sigs/neg113.bsl
+4-5Lines changed: 4 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -5,20 +5,19 @@ neg113.fs(7,41,7,52): typecheck error FS0001: This anonymous record should have
5
5
6
6
neg113.fs(10,27,10,55): typecheck error FS0059: The type '{| a: int |}' does not have any proper subtypes and need not be used as the target of a static coercion
7
7
8
-
neg113.fs(10,27,10,55): typecheck error FS0193: Type constraint mismatch. The type
8
+
neg113.fs(10,27,10,38): typecheck error FS0193: Type constraint mismatch. The type
9
9
'{| b: int |}'
10
10
is not compatible with type
11
11
'{| a: int |}'
12
12
13
13
14
14
neg113.fs(13,27,13,62): typecheck error FS0059: The type '{| a: int |}' does not have any proper subtypes and need not be used as the target of a static coercion
15
15
16
-
neg113.fs(13,27,13,62): typecheck error FS0193: Type constraint mismatch. The type
16
+
neg113.fs(13,27,13,45): typecheck error FS0193: Type constraint mismatch. The type
17
17
'{| a: int; b: int |}'
18
18
is not compatible with type
19
19
'{| a: int |}'
20
20
21
+
neg113.fs(18,34,18,36): typecheck error FS0001: The type ''a -> 'a' does not support the 'comparison' constraint. For example, it does not support the 'System.IComparable' interface
21
22
22
-
neg113.fs(18,34,18,36): typecheck error FS0001: The type '('a -> 'a)' does not support the 'comparison' constraint. For example, it does not support the 'System.IComparable' interface
23
-
24
-
neg113.fs(20,42,20,44): typecheck error FS0001: The type '('a -> 'a)' does not support the 'comparison' constraint. For example, it does not support the 'System.IComparable' interface
23
+
neg113.fs(20,42,20,44): typecheck error FS0001: The type ''a -> 'a' does not support the 'comparison' constraint. For example, it does not support the 'System.IComparable' interface
Copy file name to clipboardExpand all lines: tests/fsharp/typecheck/sigs/neg113.vsbsl
+5-4Lines changed: 5 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -5,20 +5,21 @@ neg113.fs(7,41,7,52): typecheck error FS0001: This anonymous record should have
5
5
6
6
neg113.fs(10,27,10,55): typecheck error FS0059: The type '{| a: int |}' does not have any proper subtypes and need not be used as the target of a static coercion
7
7
8
-
neg113.fs(10,27,10,55): typecheck error FS0193: Type constraint mismatch. The type
8
+
neg113.fs(10,27,10,38): typecheck error FS0193: Type constraint mismatch. The type
9
9
'{| b: int |}'
10
10
is not compatible with type
11
11
'{| a: int |}'
12
12
13
13
14
14
neg113.fs(13,27,13,62): typecheck error FS0059: The type '{| a: int |}' does not have any proper subtypes and need not be used as the target of a static coercion
15
15
16
-
neg113.fs(13,27,13,62): typecheck error FS0193: Type constraint mismatch. The type
16
+
neg113.fs(13,27,13,45): typecheck error FS0193: Type constraint mismatch. The type
17
17
'{| a: int; b: int |}'
18
18
is not compatible with type
19
19
'{| a: int |}'
20
20
21
21
22
-
neg113.fs(18,34,18,36): typecheck error FS0001: The type '('a -> 'a)' does not support the 'comparison' constraint. For example, it does not support the 'System.IComparable' interface
22
+
neg113.fs(18,34,18,36): typecheck error FS0001: The type ''a -> 'a' does not support the 'comparison' constraint. For example, it does not support the 'System.IComparable' interface
23
+
24
+
neg113.fs(20,42,20,44): typecheck error FS0001: The type ''a -> 'a' does not support the 'comparison' constraint. For example, it does not support the 'System.IComparable' interface
23
25
24
-
neg113.fs(20,42,20,44): typecheck error FS0001: The type '('a -> 'a)' does not support the 'comparison' constraint. For example, it does not support the 'System.IComparable' interface
neg16.fs(47,10,47,13): typecheck error FS0934: Records, union, abbreviations and struct types cannot have the 'AllowNullLiteral' attribute
15
15
16
-
neg16.fs(49,7,49,23): typecheck error FS0842: This attribute is not valid for use on this language element
16
+
neg16.fs(49,7,49,23): typecheck error FS0842: This attribute cannot be applied to method, property, field,return value. Valid targets are: class, interface
17
+
18
+
neg16.fs(49,7,49,23): typecheck error FS0842: This attribute cannot be applied to property, field,return value. Valid targets are: class, interface
19
+
20
+
neg16.fs(52,7,52,23): typecheck error FS0842: This attribute cannot be applied to method, property, field,return value. Valid targets are: class, interface
21
+
22
+
neg16.fs(52,7,52,23): typecheck error FS0842: This attribute cannot be applied to method,return value. Valid targets are: class, interface
17
23
18
-
neg16.fs(52,7,52,23): typecheck error FS0842: This attribute is not valid for use on this language element
19
24
20
25
neg16.fs(59,8,59,17): typecheck error FS0001: This expression was expected to have type
21
26
'Choice<'a,'b>'
@@ -121,4 +126,6 @@ neg16.fs(113,9,113,11): typecheck error FS0879: Volatile fields must be marked '
121
126
122
127
neg16.fs(116,9,116,10): typecheck error FS0879: Volatile fields must be marked 'mutable' and cannot be thread-static
123
128
129
+
neg16.fs(119,17,119,18): typecheck error FS0880: Uninitialized 'val' fields must be mutable and marked with the '[<DefaultValue>]' attribute. Consider using a 'let' binding instead of a 'val' field.
130
+
124
131
neg16.fs(130,10,130,11): typecheck error FS0935: Types with the 'AllowNullLiteral' attribute may only inherit from or implement types which also allow the use of the null literal
0 commit comments