Edit

Share via


Compiler Error C3467

'type' : this type has already been forwarded

Remarks

The compiler found more than one forward type declaration for the same type. Only one declaration per type is allowed.

For more information, see Type Forwarding (C++/CLI).

Example

The following example creates a component.

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

The following example generates C3467.

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