Skip to content

Commit fd85c96

Browse files
committed
Add type info to more SignatureConformance errors
1 parent 7dc5696 commit fd85c96

File tree

8 files changed

+85
-84
lines changed

8 files changed

+85
-84
lines changed

src/fsharp/FSComp.txt

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -113,38 +113,38 @@ ValueNotContainedMutabilityOverridesDiffer,"Module '%s' contains\n %s \nbu
113113
ValueNotContainedMutabilityOneIsConstructor,"Module '%s' contains\n %s \nbut its signature specifies\n %s \nOne is a constructor/property and the other is not"
114114
ValueNotContainedMutabilityStaticButInstance,"Module '%s' contains\n %s \nbut its signature specifies\n %s \nThe compiled representation of this method is as a static member but the signature indicates its compiled representation is as an instance member"
115115
ValueNotContainedMutabilityInstanceButStatic,"Module '%s' contains\n %s \nbut its signature specifies\n %s \nThe compiled representation of this method is as an instance member, but the signature indicates its compiled representation is as a static member"
116-
290,DefinitionsInSigAndImplNotCompatibleNamesDiffer,"The %s definitions in the signature and implementation are not compatible because the names differ"
117-
291,DefinitionsInSigAndImplNotCompatibleParameterCountsDiffer,"The %s definitions in the signature and implementation are not compatible because the respective type parameter counts differ"
118-
292,DefinitionsInSigAndImplNotCompatibleAccessibilityDiffer,"The %s definitions in the signature and implementation are not compatible because the accessibility specified in the signature is more than that specified in the implementation"
119-
293,DefinitionsInSigAndImplNotCompatibleMissingInterface,"The %s definitions in the signature and implementation are not compatible because the signature requires that the type supports the interface %s but the interface has not been implemented"
120-
294,DefinitionsInSigAndImplNotCompatibleImplementationSaysNull,"The %s definitions in the signature and implementation are not compatible because the implementation says this type may use nulls as a representation but the signature does not"
121-
294,DefinitionsInSigAndImplNotCompatibleImplementationSaysNull2,"The %s definitions in the signature and implementation are not compatible because the implementation says this type may use nulls as an extra value but the signature does not"
122-
295,DefinitionsInSigAndImplNotCompatibleSignatureSaysNull,"The %s definitions in the signature and implementation are not compatible because the signature says this type may use nulls as a representation but the implementation does not"
123-
295,DefinitionsInSigAndImplNotCompatibleSignatureSaysNull2,"The %s definitions in the signature and implementation are not compatible because the signature says this type may use nulls as an extra value but the implementation does not"
124-
296,DefinitionsInSigAndImplNotCompatibleImplementationSealed,"The %s definitions in the signature and implementation are not compatible because the implementation type is sealed but the signature implies it is not. Consider adding the [<Sealed>] attribute to the signature."
125-
297,DefinitionsInSigAndImplNotCompatibleImplementationIsNotSealed,"The %s definitions in the signature and implementation are not compatible because the implementation type is not sealed but signature implies it is. Consider adding the [<Sealed>] attribute to the implementation."
126-
298,DefinitionsInSigAndImplNotCompatibleImplementationIsAbstract,"The %s definitions in the signature and implementation are not compatible because the implementation is an abstract class but the signature is not. Consider adding the [<AbstractClass>] attribute to the signature."
127-
299,DefinitionsInSigAndImplNotCompatibleSignatureIsAbstract,"The %s definitions in the signature and implementation are not compatible because the signature is an abstract class but the implementation is not. Consider adding the [<AbstractClass>] attribute to the implementation."
128-
300,DefinitionsInSigAndImplNotCompatibleTypesHaveDifferentBaseTypes,"The %s definitions in the signature and implementation are not compatible because the types have different base types"
129-
301,DefinitionsInSigAndImplNotCompatibleNumbersDiffer,"The %s definitions in the signature and implementation are not compatible because the number of %ss differ"
130-
302,DefinitionsInSigAndImplNotCompatibleSignatureDefinesButImplDoesNot,"The %s definitions in the signature and implementation are not compatible because the signature defines the %s '%s' but the implementation does not (or does, but not in the same order)"
131-
303,DefinitionsInSigAndImplNotCompatibleImplDefinesButSignatureDoesNot,"The %s definitions in the signature and implementation are not compatible because the implementation defines the %s '%s' but the signature does not (or does, but not in the same order)"
132-
304,DefinitionsInSigAndImplNotCompatibleImplDefinesStruct,"The %s definitions in the signature and implementation are not compatible because the implementation defines a struct but the signature defines a type with a hidden representation"
133-
305,DefinitionsInSigAndImplNotCompatibleDotNetTypeRepresentationIsHidden,"The %s definitions in the signature and implementation are not compatible because a CLI type representation is being hidden by a signature"
134-
306,DefinitionsInSigAndImplNotCompatibleTypeIsHidden,"The %s definitions in the signature and implementation are not compatible because a type representation is being hidden by a signature"
135-
307,DefinitionsInSigAndImplNotCompatibleTypeIsDifferentKind,"The %s definitions in the signature and implementation are not compatible because the types are of different kinds"
136-
308,DefinitionsInSigAndImplNotCompatibleILDiffer,"The %s definitions in the signature and implementation are not compatible because the IL representations differ"
137-
309,DefinitionsInSigAndImplNotCompatibleRepresentationsDiffer,"The %s definitions in the signature and implementation are not compatible because the representations differ"
116+
290,DefinitionsInSigAndImplNotCompatibleNamesDiffer,"The %s definitions in the signature and implementation are not compatible because the names differ. The type is called '%s' in the signature file but '%s' in implementation."
117+
291,DefinitionsInSigAndImplNotCompatibleParameterCountsDiffer,"The %s definitions for type '%s' in the signature and implementation are not compatible because the respective type parameter counts differ"
118+
292,DefinitionsInSigAndImplNotCompatibleAccessibilityDiffer,"The %s definitions for type '%s' in the signature and implementation are not compatible because the accessibility specified in the signature is more than that specified in the implementation"
119+
293,DefinitionsInSigAndImplNotCompatibleMissingInterface,"The %s definitions for type '%s' in the signature and implementation are not compatible because the signature requires that the type supports the interface %s but the interface has not been implemented"
120+
294,DefinitionsInSigAndImplNotCompatibleImplementationSaysNull,"The %s definitions for type '%s' in the signature and implementation are not compatible because the implementation says this type may use nulls as a representation but the signature does not"
121+
294,DefinitionsInSigAndImplNotCompatibleImplementationSaysNull2,"The %s definitions for type '%s' in the signature and implementation are not compatible because the implementation says this type may use nulls as an extra value but the signature does not"
122+
295,DefinitionsInSigAndImplNotCompatibleSignatureSaysNull,"The %s definitions for type '%s' in the signature and implementation are not compatible because the signature says this type may use nulls as a representation but the implementation does not"
123+
295,DefinitionsInSigAndImplNotCompatibleSignatureSaysNull2,"The %s definitions for type '%s' in the signature and implementation are not compatible because the signature says this type may use nulls as an extra value but the implementation does not"
124+
296,DefinitionsInSigAndImplNotCompatibleImplementationSealed,"The %s definitions for type '%s' in the signature and implementation are not compatible because the implementation type is sealed but the signature implies it is not. Consider adding the [<Sealed>] attribute to the signature."
125+
297,DefinitionsInSigAndImplNotCompatibleImplementationIsNotSealed,"The %s definitions for type '%s' in the signature and implementation are not compatible because the implementation type is not sealed but signature implies it is. Consider adding the [<Sealed>] attribute to the implementation."
126+
298,DefinitionsInSigAndImplNotCompatibleImplementationIsAbstract,"The %s definitions for type '%s' in the signature and implementation are not compatible because the implementation is an abstract class but the signature is not. Consider adding the [<AbstractClass>] attribute to the signature."
127+
299,DefinitionsInSigAndImplNotCompatibleSignatureIsAbstract,"The %s definitions for type '%s' in the signature and implementation are not compatible because the signature is an abstract class but the implementation is not. Consider adding the [<AbstractClass>] attribute to the implementation."
128+
300,DefinitionsInSigAndImplNotCompatibleTypesHaveDifferentBaseTypes,"The %s definitions for type '%s' in the signature and implementation are not compatible because the types have different base types"
129+
301,DefinitionsInSigAndImplNotCompatibleNumbersDiffer,"The %s definitions for type '%s' in the signature and implementation are not compatible because the number of %ss differ"
130+
302,DefinitionsInSigAndImplNotCompatibleSignatureDefinesButImplDoesNot,"The %s definitions for type '%s' in the signature and implementation are not compatible because the signature defines the %s '%s' but the implementation does not (or does, but not in the same order)"
131+
303,DefinitionsInSigAndImplNotCompatibleImplDefinesButSignatureDoesNot,"The %s definitions for type '%s' in the signature and implementation are not compatible because the implementation defines the %s '%s' but the signature does not (or does, but not in the same order)"
132+
304,DefinitionsInSigAndImplNotCompatibleImplDefinesStruct,"The %s definitions for type '%s' in the signature and implementation are not compatible because the implementation defines a struct but the signature defines a type with a hidden representation"
133+
305,DefinitionsInSigAndImplNotCompatibleDotNetTypeRepresentationIsHidden,"The %s definitions for type '%s' in the signature and implementation are not compatible because a CLI type representation is being hidden by a signature"
134+
306,DefinitionsInSigAndImplNotCompatibleTypeIsHidden,"The %s definitions for type '%s' in the signature and implementation are not compatible because a type representation is being hidden by a signature"
135+
307,DefinitionsInSigAndImplNotCompatibleTypeIsDifferentKind,"The %s definitions for type '%s' in the signature and implementation are not compatible because the types are of different kinds"
136+
308,DefinitionsInSigAndImplNotCompatibleILDiffer,"The %s definitions for type '%s' in the signature and implementation are not compatible because the IL representations differ"
137+
309,DefinitionsInSigAndImplNotCompatibleRepresentationsDiffer,"The %s definitions for type '%s' in the signature and implementation are not compatible because the representations differ"
138138
311,DefinitionsInSigAndImplNotCompatibleFieldWasPresent,"The %s definitions for type '%s' in the signature and implementation are not compatible because the field %s was present in the implementation but not in the signature"
139-
312,DefinitionsInSigAndImplNotCompatibleFieldOrderDiffer,"The %s definitions in the signature and implementation are not compatible because the order of the fields is different in the signature and implementation"
139+
312,DefinitionsInSigAndImplNotCompatibleFieldOrderDiffer,"The %s definitions for type '%s' in the signature and implementation are not compatible because the order of the fields is different in the signature and implementation"
140140
313,DefinitionsInSigAndImplNotCompatibleFieldRequiredButNotSpecified,"The %s definitions for type '%s' in the signature and implementation are not compatible because the field %s was required by the signature but was not specified by the implementation"
141141
314,DefinitionsInSigAndImplNotCompatibleFieldIsInImplButNotSig,"The %s definitions for type '%s' in the signature and implementation are not compatible because the field '%s' was present in the implementation but not in the signature. Struct types must now reveal their fields in the signature for the type, though the fields may still be labelled 'private' or 'internal'."
142-
315,DefinitionsInSigAndImplNotCompatibleAbstractMemberMissingInImpl,"The %s definitions in the signature and implementation are not compatible because the abstract member '%s' was required by the signature but was not specified by the implementation"
143-
316,DefinitionsInSigAndImplNotCompatibleAbstractMemberMissingInSig,"The %s definitions in the signature and implementation are not compatible because the abstract member '%s' was present in the implementation but not in the signature"
144-
317,DefinitionsInSigAndImplNotCompatibleSignatureDeclaresDiffer,"The %s definitions in the signature and implementation are not compatible because the signature declares a %s while the implementation declares a %s"
145-
318,DefinitionsInSigAndImplNotCompatibleAbbreviationsDiffer,"The %s definitions in the signature and implementation are not compatible because the abbreviations differ: %s versus %s"
146-
319,DefinitionsInSigAndImplNotCompatibleAbbreviationHiddenBySig,"The %s definitions in the signature and implementation are not compatible because an abbreviation is being hidden by a signature. The abbreviation must be visible to other CLI languages. Consider making the abbreviation visible in the signature."
147-
320,DefinitionsInSigAndImplNotCompatibleSigHasAbbreviation,"The %s definitions in the signature and implementation are not compatible because the signature has an abbreviation while the implementation does not"
142+
315,DefinitionsInSigAndImplNotCompatibleAbstractMemberMissingInImpl,"The %s definitions for type '%s' in the signature and implementation are not compatible because the abstract member '%s' was required by the signature but was not specified by the implementation"
143+
316,DefinitionsInSigAndImplNotCompatibleAbstractMemberMissingInSig,"The %s definitions for type '%s' in the signature and implementation are not compatible because the abstract member '%s' was present in the implementation but not in the signature"
144+
317,DefinitionsInSigAndImplNotCompatibleSignatureDeclaresDiffer,"The %s definitions for type '%s' in the signature and implementation are not compatible because the signature declares a %s while the implementation declares a %s"
145+
318,DefinitionsInSigAndImplNotCompatibleAbbreviationsDiffer,"The %s definitions for type '%s' in the signature and implementation are not compatible because the abbreviations differ: %s versus %s"
146+
319,DefinitionsInSigAndImplNotCompatibleAbbreviationHiddenBySig,"The %s definitions for type '%s' in the signature and implementation are not compatible because an abbreviation is being hidden by a signature. The abbreviation must be visible to other CLI languages. Consider making the abbreviation visible in the signature."
147+
320,DefinitionsInSigAndImplNotCompatibleSigHasAbbreviation,"The %s definitions for type '%s' in the signature and implementation are not compatible because the signature has an abbreviation while the implementation does not"
148148
ModuleContainsConstructorButNamesDiffer,"The module contains the constructor\n %s \nbut its signature specifies\n %s \nThe names differ"
149149
ModuleContainsConstructorButDataFieldsDiffer,"The module contains the constructor\n %s \nbut its signature specifies\n %s \nThe respective number of data fields differ"
150150
ModuleContainsConstructorButTypesOfFieldsDiffer,"The module contains the constructor\n %s \nbut its signature specifies\n %s \nThe types of the fields differ"

0 commit comments

Comments
 (0)