Condividi tramite


Errore del compilatore C3467

'type': questo tipo è stato già inoltrato

Il compilatore ha trovato più dichiarazioni con prototipo per lo stesso tipo. È consentita una sola dichiarazione per tipo.

Per altre informazioni, vedere Inoltro dei tipi (C++/CLI).

Esempi

L'esempio seguente crea un componente.

// C3467.cpp
// compile with: /LD /clr
public ref class R {};

L'esempio seguente genera l'errore C3467.

// C3467_b.cpp
// compile with: /clr /c
#using "C3467.dll"
[ assembly:TypeForwardedTo(R::typeid) ];
[ assembly:TypeForwardedTo(R::typeid) ];   // C3467