Sdílet prostřednictvím


Chyba kompilátoru C3215

'type1' : parametr obecného typu již omezen parametrem type2

Poznámky

Omezení bylo zadáno více než jednou.

Další informace o obecných formátech najdete v tématu Obecné typy.

Example

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

// C3215.cpp
// compile with: /clr
interface struct A {};

generic <class T>
where T : A,A
ref class C {};   // C3215

Možné řešení:

// C3215b.cpp
// compile with: /clr /c
interface struct A {};

generic <class T>
where T : A
ref class C {};