Sdílet prostřednictvím


Chyba kompilátoru C2380

type(s) předcházející 'identifier' (konstruktor s návratovým typem nebo nelegální redefinition aktuální třídy-name?)

Poznámky

Konstruktor vrátí hodnotu nebo předefinuje název třídy.

Example

Následující příklad vygeneruje C2380:

// C2380.cpp
// compile with: /c
class C {
public:
   int C();   // C2380, specifies an int return
   int C;   // C2380, redefinition of i
   C();   // OK
};