Skip to content

Wrong observable event signature generated for events hidden in the inheriting class #209

Description

@Metadorius

Description

When using the source generator on newest DevExpress WinForms controls (using .NET Framework 4.8) the result can't be compiled because of some wrongly generated code. It seems that PaintEx signature differs from what the source generator assumes, so the result can't be compiled.

How to repro

  1. Install DevExpress WinForms components (23.2.4 as of time of writing) trial from here
  2. Clone https://github.com/kpCat/ObservableEventsDevexpressRepro
  3. Attempt to build the solution

Result

The following error pops up on compilation:

4>SourceClassDevExpress.XtraEditors.TextEdit-InstanceEvents.SourceGenerated.cs(440,13): Error CS0123 : No overloaded method for "Handler" that corresponds to the delegate "TextEditPaintExEventHandler".

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions