'class': a managed class cannot be a coclass
The coclass attribute cannot be used with managed classes.
The following sample generates C3734:
#using <mscorlib.dll> [module(name=x)]; [coclass] __gc class CMyClass { // remove the __gc keyword to resolve }; void main() { }