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

TypeScript output: add type parameters on ctor and method calls #839

Open
Tarmil opened this issue Oct 20, 2017 · 0 comments
Open

TypeScript output: add type parameters on ctor and method calls #839

Tarmil opened this issue Oct 20, 2017 · 0 comments

Comments

@Tarmil
Copy link
Member

Tarmil commented Oct 20, 2017

TS infers the parameters from the arguments, but it doesn't always infer the right type. For example new FSharpSet(0, null) (which is what Set.empty compiles to) is always inferred to return FSharpSet<{}>.

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