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

Type conversion bug when assigning a variable #30

Open
asujeeth opened this issue Jan 15, 2013 · 1 comment
Open

Type conversion bug when assigning a variable #30

asujeeth opened this issue Jan 15, 2013 · 1 comment
Labels

Comments

@asujeeth
Copy link
Contributor

var i = 0
if (foo) i = 1.0 else i = 2

results in a runtime generated code type error. This should be caught earlier.

@TiarkRompf
Copy link
Contributor

i suspect this has to with type Var still being defined as covariant

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants