This project is read-only.
1
Vote

Compilation errors contain special names for constructors

description

Consider a class with duplicated constructors (either instance and static):
  class A
  {
    public A() { }
    public A() { }
    static A() { }
    static A() { }
  }
The compiler errors are:

Error Type 'ConsoleApplication8.A' already defines a member called '.ctor' with the same parameter types
Error Type 'ConsoleApplication8.A' already defines a member called '.cctor' with the same parameter types

But when I ran the code on VS2012 I do not get special nicknames '.ctor' and '.cctor' in the error message. I simply get class name:

Error Type 'ConsoleApplication8.A' already defines a member called 'A' with the same parameter types
Error Type 'ConsoleApplication8.A' already defines a member called 'A' with the same parameter types

comments