zzarchive-VisualFSharpPowerTools icon indicating copy to clipboard operation
zzarchive-VisualFSharpPowerTools copied to clipboard

[Find all references] Does not find usages of events when started from definition

Open vasily-kirichenko opened this issue 9 years ago • 2 comments
trafficstars

type T() =
    let e = Event<_>()
    member __.E = e.Publish

let t = T()
t.E.Add (fun _ -> ())

Execute Find all refs on E in member __.E = e.Publish line => only single ref is found (itself) Execute it on E in t.E.Add (fun _ -> ()) => two refs (OK) are found.

vasily-kirichenko avatar Dec 03 '15 11:12 vasily-kirichenko

Could you open an issue in FCS repo with more information? Handling event symbols has some inconsistencies from early days.

dungpa avatar Dec 16 '15 14:12 dungpa

Reported upstream.

dungpa avatar Dec 23 '15 23:12 dungpa