Compartir a través de


Error del compilador C3050

'type1': una clase ref no puede heredar de 'type1'

System::ValueType no puede ser una clase base para un tipo de referencia.

El ejemplo siguiente genera la advertencia C3050:

// C3050.cpp
// compile with: /clr /LD
ref struct X : System::ValueType {};   // C3050
ref struct Y {};   // OK