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

Function types in Source Typed #1683

Open
martin-henz opened this issue Apr 18, 2024 · 0 comments
Open

Function types in Source Typed #1683

martin-henz opened this issue Apr 18, 2024 · 0 comments

Comments

@martin-henz
Copy link
Member

martin-henz commented Apr 18, 2024

Should declarations inherit the type of their right-hand side?

Example:

let a: number = 1;

let b = a;

b = "a string";

does not give a type error in Source Typed.

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