Edit

Share via


Compiler Error C3464

'type' a nested type cannot be forwarded

Remarks

Type forwarding does not work on nested types.

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

Example

The following example creates a component.

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

The following example generates C3464.

// C3464_b.cpp
// compile with: /clr /c
#using "C3464.dll"
[assembly:TypeForwardedTo(R::N::typeid)];   // C3464
[assembly:TypeForwardedTo(R::typeid)];   // OK