Skip to content

mfv.LogicalName throws exceptions for CLIEvent properties #16640

@auduchinok

Description

@auduchinok

Consider the following F# snippet:

type T() = 
    [<CLIEvent>]
    member this.Event = Event<int>().Publish

Steps to reproduce:

  • get all symbols via checkResults.GetAllUsesOfAllSymbolsInFile()
  • iterate via all symbols and access LogicalName property

Expected result: no exceptions
Actual result: exception on accessor members:

System.Exception: Invalid internal property name: 'remove_Event'
   at Microsoft.FSharp.Core.PrintfModule.PrintFormatToStringThenFail@1448.Invoke(String message)

This is a recent regression and it hasn't been happening with FCS main from ~November.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions