Skip to content

Latest commit

 

History

History
34 lines (28 loc) · 706 Bytes

compiler-error-c3224.md

File metadata and controls

34 lines (28 loc) · 706 Bytes
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Compiler Error C3224
Compiler Error C3224
11/04/2016
C3224
C3224
129be22f-8f3e-4fc6-9ccd-d27d8ef91251

Compiler Error C3224

'type' : no overloaded generic class takes 'number' generic type arguments

The compiler failed to find an appropriate overload.

The following sample generates C3224:

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

And then,

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