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

Let binding broken #1

Open
davidpodhola opened this issue Apr 10, 2016 · 1 comment
Open

Let binding broken #1

davidpodhola opened this issue Apr 10, 2016 · 1 comment

Comments

@davidpodhola
Copy link
Contributor

May be related to the latest FSharp.Compiler.Service 3.0.0 release.
An example of what is no longer working


let result =
    let i, j, k = (1, 2, 3)
    // Body expression: 
    i + 2*j + 3*k

fs2cs let broken

@davidpodhola
Copy link
Contributor Author

Changed to

using System;
using static fs2csLib.Impl;

public class Test24 {
    public static readonly int result = Tuple<int,int,int> patternInput=Tuple.Create(1,2,3);
    int k=(patternInput).Item3;
    int j=(patternInput).Item2;
    int i=(patternInput).Item1;
    return i+2*j+3*k;
}

Anyway still not handling body expressions correctly. Needs to be redone.

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