The following code will crash the compiler, with Internal Error E0.
type
[COM, GUID('{8A6E27EB-9D42-4EAF-B362-75B8F8AFC84D}')]
IEventSink = public interface(IUnknown)
method ConnectEvents;
method DisconnectEvents;
property ConnectionID: Int32 read;
property IsConnected: Boolean read;
end;
EventSinkBase<T> = public abstract class(IEventSink)
where T is IUnknown;
private
const cUndefinedCoookie = -1;
private
var fCookie: Int32;
var fGuid: GUID;
var fEventSource: IUnknown;
private
method get_ConnectionID: Int32;
method get_IsConnected: Boolean;
protected
method ConnectEvents; virtual;
method DisconnectEvents; virtual;
public
constructor(aEventSource: IUnknown);
property ConnectionID: Int32 read get_ConnectionID;
property IsConnected: Boolean read get_IsConnected;
property EventSinkGuid: GUID read fGuid;
end;
Test.7z (4.3 KB)