Sdílet prostřednictvím


Chyba kompilátoru C3224

'type' : žádná přetížená obecná třída přebírá argumenty obecného typu number

Poznámky

Kompilátor nenalezl odpovídající přetížení.

Example

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

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

A pak,

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