Skip to content

Extract Interface on VB Events may try to expose underlying delegate type from the interface #288

@dpoeschl

Description

@dpoeschl

Ported from TFS WorkItem: 738545


Repro Steps:

Affected Branch:
Affected Build:
Affected Product Language:

Steps to reproduce:

1. Run ExtractInterface on this code:

 

Public Class TestClass
Public Event Foo4() End Class

 

Expected: No error (not sure yet whether there's a way around this or if this event shouldn't be extractable...)

Actual: Error: 'Foo4' cannot expose the underlying delegate type 'ITestClass(Of ...).Foo4EventHandler' of the event it is implementing outside the project through class 'TestClass'.


Revisions:

  1. Created By David Poeschl (7/16/2013 8:14:56 AM)

  1. Edited By Dustin Campbell (7/17/2013 9:45:34 AM)

I think we need to disallow simplified events as they can't be implemented via interfaces. However, we should allow Custom Events because they can.


Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions