description | title | ms.date | f1_keywords | helpviewer_keywords | ms.assetid | ||
---|---|---|---|---|---|---|---|
Learn more about: Compiler Error C3050 |
Compiler Error C3050 |
11/04/2016 |
|
|
ee090a0b-29cc-4215-a2f9-d82af79b8e82 |
'type1' : a ref class cannot inherit from 'type1'
System::ValueType
cannot be a base class for a reference type.
The following sample generates C3050:
// C3050.cpp
// compile with: /clr /LD
ref struct X : System::ValueType {}; // C3050
ref struct Y {}; // OK