The following code
public ref class X
{
protected:
delegate void D();
void F(D^ a) { }
};
gives warning C4677: 'F': signature of non-private member contains assembly
private type 'X:D'
In another assembly the following code (C#) works fine:
public class Y : X {
public void Callback() { }
Y() { F(Callback); }
}
Ben Voigt [C++ MVP] - 24 Sep 2007 23:23 GMT
> The following code
>
[quoted text clipped - 8 lines]
> assembly
> private type 'X:D'
Looks like a bug, I suggest you file it on Connect.
> In another assembly the following code (C#) works fine:
> public class Y : X {
> public void Callback() { }
> Y() { F(Callback); }
> }