“type”:泛型类型形参已被约束
在多个 where
子句中约束一个泛型参数是无效的。
下面的示例生成 C3233:
// C3233.cpp
// compile with: /clr /LD
interface struct C {};
interface struct D {};
generic <class T>
where T : C
where T : D
ref class E {}; // C3233
“type”:泛型类型形参已被约束
在多个 where
子句中约束一个泛型参数是无效的。
下面的示例生成 C3233:
// C3233.cpp
// compile with: /clr /LD
interface struct C {};
interface struct D {};
generic <class T>
where T : C
where T : D
ref class E {}; // C3233