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.