Partilhar via


Erro do compilador C3224

'tipo' : nenhuma classe genérica sobrecarregada usa argumentos de tipo genérico 'número'

Observações

O compilador não conseguiu encontrar uma sobrecarga apropriada.

Example

O exemplo a seguir gera C3224:

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

E depois

// 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
}