Condividi tramite


Errore del compilatore C3224

'type': nessuna classe generica in overload accetta 'number' argomenti di tipo generico

Il compilatore non è riuscito a trovare un overload appropriato.

L'esempio seguente genera l'errore C3224:

// C3224.cs
// compile with: /target:library
public class C<T> {}
public class C<T,U> {}

E quindi,

// C3224b.cpp
// compile with: /clr
#using "C3224.dll"
int main() {
   C<int,int,int>^ c = gcnew C<int,int,int>();   // C3224
   C<int,int>^ c2 = gcnew C<int,int>();   // OK
}