Closed SergeyTeplyakov closed 10 years ago
public class MalformedContractWithVoidMethod { public void Foo(string s) { // error CC1017: Malformed contract section in method 'Sample.Foo(System.String)' switch (s) { case "foo": Contract.Requires(false); break; } } }