Sdílet prostřednictvím


Chyba kompilátoru C3050

'type1' : Třída ref nemůže dědit z 'type1'

Poznámky

System::ValueType nemůže být základní třídou pro typ odkazu.

Example

Následující příklad vygeneruje C3050:

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