編譯器錯誤 C3394
條件約束子句中語法錯誤:找到 'identifier',但必須是類型
條件約束的格式錯誤。 如需詳細資訊,請參閱泛型型別參數的限制式 (C++/CLI)。
範例
下列範例會產生 C3394:
// C3394.cpp
// compile with: /clr /c
ref class MyClass {};
ref class R {
generic<typename T>
where T : static // C3394
// try the following line instead
// where T : MyClass
void f() {}
};