Condividi tramite


Errore del compilatore C3464

Non è possibile inoltrare un tipo annidato con 'type'

L'inoltro dei tipi non funziona nei tipi annidati.

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

Esempi

L'esempio seguente crea un componente.

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

L'esempio seguente genera l'errore C3464.

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