ooc-lang / rock

:ocean: self-hosted ooc compiler that generates c99
http://ooc-lang.org/
MIT License
403 stars 40 forks source link

ooc array literals assignments don't infer correctly #881

Closed fasterthanlime closed 9 years ago

fasterthanlime commented 9 years ago

If you do this:

arr: Float[]
arr = [1.0, 2.0, 3.0]

It's all fucked, because the literal is a Double[]. That's wrong, obvs.