Using fromEventHandler, it infers to argument to be obj rather then the supplied type. If I copy/paste the code to my project instead, it works, which makes me suspect something odd about the F# inference rules related to external projects or something.
Using
fromEventHandler
, it infers to argument to beobj
rather then the supplied type. If I copy/paste the code to my project instead, it works, which makes me suspect something odd about the F# inference rules related to external projects or something.https://github.com/fsprojects/FSharp.Control.Reactive/blob/master/src/FSharp.Control.Reactive/Observable.fs#L791
Maybe
_
needs to be replaced with'EventArgs
? I haven't investigated the root cause of this.EDIT: To reproduce
Gives