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

Another example of Typl inference #40

Open
getify opened this issue Apr 11, 2019 · 0 comments
Open

Another example of Typl inference #40

getify opened this issue Apr 11, 2019 · 0 comments
Labels
cool-example Something very interesting to look at

Comments

@getify
Copy link
Owner

getify commented Apr 11, 2019

function foo(v) {
    return v;
}

var x = foo(2);
x = "hello";  // error: expected 'int' but found 'string'
@getify getify added the cool-example Something very interesting to look at label Apr 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cool-example Something very interesting to look at
Projects
None yet
Development

No branches or pull requests

1 participant