Sdílet prostřednictvím


Chyba kompilátoru C3393

Syntaktická chyba v klauzuli constraint: Identifikátor není typ

Poznámky

Identifikátor předaný omezení, který musí být typem, nebyl typem. Další informace naleznete v tématu Omezení obecných parametrů typu (C++/CLI).

Příklad

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

// C3393.cpp
// compile with: /clr /c
void MyInterface() {}
interface class MyInterface2 {};

generic<typename T>
where T : MyInterface   // C3393
// try the following line instead
// where T : MyInterface2
ref class R {};