Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimization bug around instance curried methods #671

Closed
Jand42 opened this issue Mar 21, 2017 · 0 comments
Closed

Optimization bug around instance curried methods #671

Jand42 opened this issue Mar 21, 2017 · 0 comments

Comments

@Jand42
Copy link
Member

Jand42 commented Mar 21, 2017

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

[<JavaScript>]
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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant