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

Wrong element type when using array #154

Closed
albertnetymk opened this issue May 4, 2015 · 2 comments
Closed

Wrong element type when using array #154

albertnetymk opened this issue May 4, 2015 · 2 comments
Assignees

Comments

@albertnetymk
Copy link
Contributor

class Main
 def main(): void {
   let
     arr = new [Worker](10)
   in {
     ();
   }
 }
class Worker 

The C code corresponding to array creation is:

array_t* _array_0 = array_mk(_literal_2, ENCORE_PRIMITIVE);

while the usage of ENCORE_PRIMITIVE here is wrong.

@EliasC
Copy link
Contributor

EliasC commented May 4, 2015

I found the source of the bug, will fix after lunch!

@EliasC EliasC self-assigned this May 4, 2015
@albertnetymk
Copy link
Contributor Author

@EliasC Excellent! Thanks.

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

2 participants