After abbreviators [started to work](https://github.com/Microsoft/CodeContracts/issues/23), we get the error > Malfromed Contract. Found Requires after assignment. for the following method: ``` C# [ContractAbbreviator] [SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "value")] [SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "userMessage")] public static void NotDefault<T>(T value, string userMessage) { Contract.Requires<ArgumentException>(!EqualityComparer<T>.Default.Equals(value, default(T)), userMessage); } ``` If method's body is inlined as a usual CodeContract, or abbreviator is used within the same assembly no errors appear. **Update** This error occurs only for enum types.
After abbreviators started to work, we get the error
for the following method:
If method's body is inlined as a usual CodeContract, or abbreviator is used within the same assembly no errors appear.
Update
This error occurs only for enum types.