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

Suggestion: typechecking for asm.js #18

Closed
RyanCavanaugh opened this issue Jul 15, 2014 · 1 comment
Closed

Suggestion: typechecking for asm.js #18

RyanCavanaugh opened this issue Jul 15, 2014 · 1 comment
Labels
Declined The issue was declined as something which matches the TypeScript vision Out of Scope This idea sits outside of the TypeScript language design constraints Suggestion An idea for TypeScript Too Complex An issue which adding support for may be too complex for the value it adds

Comments

@RyanCavanaugh
Copy link
Member

Support detecting "use asm" directives and change type inference and operator rules accordingly

"use asm";
var x = 0; // x: int
var y = 0.0: // y: float
var z = (x + y) | 0; // z: int
z = 0.4; // Error, cannot convert float to int

We would need a complete set of type rules for this.

@RyanCavanaugh
Copy link
Member Author

asm.js type system is too different from TypeScript's for this to be useful/feasible.

@microsoft microsoft locked and limited conversation to collaborators Jun 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Declined The issue was declined as something which matches the TypeScript vision Out of Scope This idea sits outside of the TypeScript language design constraints Suggestion An idea for TypeScript Too Complex An issue which adding support for may be too complex for the value it adds
Projects
None yet
Development

No branches or pull requests

1 participant