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

Incorrect translation for let values in stub module #1015

Closed
Tarmil opened this issue Aug 28, 2018 · 0 comments
Closed

Incorrect translation for let values in stub module #1015

Tarmil opened this issue Aug 28, 2018 · 0 comments
Assignees

Comments

@Tarmil
Copy link
Member

Tarmil commented Aug 28, 2018

The following code:

[<Stub>]
module MyModule =
    let value = X<int>

let test() = MyModule.value

translates into:

test = function() { return MyModule.value(); }

whereas it should be:

test = function() { return MyModule.value; }
@Tarmil Tarmil added the bug label Aug 28, 2018
@Tarmil Tarmil self-assigned this Aug 28, 2018
@Tarmil Tarmil closed this as completed in d488140 Aug 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant