Edit

Share via


Compiler Error C3464

'type' a nested type cannot be forwarded

Type forwarding does not work on nested types.

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

Examples

The following sample creates a component.

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

The following sample generates C3464.

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