Optimization bug around instance curried methods #671

Jand42 opened this Issue Mar 21, 2017 · 0 comments


None yet
1 participant

Jand42 commented Mar 21, 2017

Encountered at ListModel.Wrap in UI.Next, a curried instance type extension method is optimized wrong

type CurriedInst<'T>(x : 'T) =    
    member this.X = x

type [<JavaScript>] CurriedInst =
    static member Test<'T> (x: CurriedInst<'T>) f g h = h (f x.X : int) (g x.X : int)

type CurriedInst<'T> with  
    // this is optimized wrong, the this parameter is not enclosed properly
    member this.Test a b c = CurriedInst.Test this a b c :int
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment