Compiler Error C3234
Visual Studio 2015
The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.
The latest version of this topic can be found at Compiler Error C3234.
a generic class may not derive from a generic type parameter
A generic class cannot inherit from a generic type parameter.
The following sample generates C3234.
// C3234.cpp
// compile with: /clr /c
generic <class T>
public ref class C : T {}; // C3234
// try the following line instead
// public ref class C {};
Show: