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
Suggest Record labels and Union cases (dotnet#2119)
* Show that we can't suggest record labels* Suggest record labels -fixesdotnet#2117* cleanup* Fix the test* New test for union cases* Suggest union cases* Suggest more unions* Fix tests
neg01a.fs(22,8,23,7): typecheck error FS0913: Types cannot contain nested type definitions
5
5
6
-
neg01b.fs(2,13,2,14): typecheck error FS0039: The value, constructor, namespaceor type 'X' isnot defined. Maybe you want one of the following:fieldsInWrongOrder, missingConstructorInSignature, missingFieldInSignature, missingInterfaceInImplementation, missingInterfaceInSignature
6
+
neg01b.fs(2,13,2,14): typecheck error FS0039: The value, constructor, namespaceor type 'X' isnot defined. Maybe you want one of the following:A, B, fieldsInWrongOrder, missingConstructorInSignature, missingFieldInSignature
neg14a.fs(9,6,9,33): typecheck error FS0343: The type 'missingInterfaceInSignature' implements 'System.IComparable' explicitly but provides no corresponding overridefor 'Object.Equals'. An implementation of 'Object.Equals' has been automatically provided, implemented via 'System.IComparable'. Consider implementing the override 'Object.Equals' explicitly
3
3
4
-
neg14b.fs(2,13,2,14): typecheck error FS0039: The value, constructor, namespaceor type 'X' isnot defined. Maybe you want one of the following:fieldsInWrongOrder, missingConstructorInSignature, missingFieldInSignature, missingInterfaceInImplementation, missingInterfaceInSignature
4
+
neg14b.fs(2,13,2,14): typecheck error FS0039: The value, constructor, namespaceor type 'X' isnot defined. Maybe you want one of the following:A, B, fieldsInWrongOrder, missingConstructorInSignature, missingFieldInSignature
Copy file name to clipboardExpand all lines: tests/fsharp/typecheck/sigs/neg15.bsl
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -29,11 +29,11 @@ neg15.fs(115,19,115,48): typecheck error FS0072: Lookup on object of indetermina
29
29
30
30
neg15.fs(116,20,116,73): typecheck error FS0072: Lookup on object of indeterminate type based on information priorto this program point. A type annotation may be needed priorto this program pointto constrain the type of the object. This may allow the lookupto be resolved.
31
31
32
-
neg15.fs(122,32,122,57): typecheck error FS0039: The value, constructor, namespaceor type 'InternalTagOfInternalType' isnot defined. Maybe you want one of the following: InternalUnionType, InternalRecordType, UnionTypeWithPrivateRepresentation
32
+
neg15.fs(122,32,122,57): typecheck error FS0039: The value, constructor, namespaceor type 'InternalTagOfInternalType' isnot defined. Maybe you want one of the following: InternalUnionType, InternalRecordType,DefaultTagOfInternalType, DefaultTagOfPrivateType,UnionTypeWithPrivateRepresentation
33
33
34
34
neg15.fs(128,31,128,61): typecheck error FS0072: Lookup on object of indeterminate type based on information priorto this program point. A type annotation may be needed priorto this program pointto constrain the type of the object. This may allow the lookupto be resolved.
35
35
36
-
neg15.fs(135,31,135,56): typecheck error FS0039: The value, constructor, namespaceor type 'InternalTagOfInternalType' isnot defined. Maybe you want one of the following: InternalUnionType, InternalRecordType, UnionTypeWithPrivateRepresentation
36
+
neg15.fs(135,31,135,56): typecheck error FS0039: The value, constructor, namespaceor type 'InternalTagOfInternalType' isnot defined. Maybe you want one of the following: InternalUnionType, InternalRecordType,DefaultTagOfInternalType, DefaultTagOfPrivateType,UnionTypeWithPrivateRepresentation
37
37
38
38
neg15.fs(141,30,141,60): typecheck error FS0072: Lookup on object of indeterminate type based on information priorto this program point. A type annotation may be needed priorto this program pointto constrain the type of the object. This may allow the lookupto be resolved.
Copy file name to clipboardExpand all lines: tests/fsharp/typecheck/sigs/neg17.bsl
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@ neg17b.fs(16,19,16,48): typecheck error FS0072: Lookup on object of indeterminat
21
21
22
22
neg17b.fs(17,19,17,47): typecheck error FS0072: Lookup on object of indeterminate type based on information priorto this program point. A type annotation may be needed priorto this program pointto constrain the type of the object. This may allow the lookupto be resolved.
23
23
24
-
neg17b.fs(21,31,21,77): typecheck error FS0039: The value, constructor, namespaceor type 'DefaultTagOfUnionTypeWithPrivateRepresentation' isnot defined. Maybe you want one of the following: UnionTypeWithPrivateRepresentation, RecordTypeWithPrivateRepresentation
24
+
neg17b.fs(21,31,21,77): typecheck error FS0039: The value, constructor, namespaceor type 'DefaultTagOfUnionTypeWithPrivateRepresentation' isnot defined. Maybe you want one of the following:DefaultTagOfInternalType, DefaultTagOfPrivateType,UnionTypeWithPrivateRepresentation, RecordTypeWithPrivateRepresentation
25
25
26
26
neg17b.fs(29,31,29,61): typecheck error FS0072: Lookup on object of indeterminate type based on information priorto this program point. A type annotation may be needed priorto this program pointto constrain the type of the object. This may allow the lookupto be resolved.
//<Expects status="Error" id="FS0039">The field, constructor or member 'AntherCase' is not defined. Maybe you want one of the following: AnotherCase</Expects>