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

Generic function causes compiler crash #833

Closed
horasal opened this issue Oct 2, 2014 · 2 comments
Closed

Generic function causes compiler crash #833

horasal opened this issue Oct 2, 2014 · 2 comments
Milestone

Comments

@horasal
Copy link
Contributor

@horasal horasal commented Oct 2, 2014

Rock crashes(segmentation fault) while compiling this:

foo: func<T>(a: T) {}
foo<Int>(1)

but inferring from parameter works well:

foo: func<T>(a: T) {}
foo(1)
@davidhesselbom
Copy link
Contributor

@davidhesselbom davidhesselbom commented Oct 2, 2014

Related to #811, maybe?

Loading

@alexnask
Copy link
Collaborator

@alexnask alexnask commented Oct 2, 2014

Yes, this is a duplicate issue, the <Generic List> syntax is not supported for functions in ooc but nagaqueen bugs out on such statements.

I've tried to fix that but didn't find out how, I will try my best to fix some pressing issues this weekend.

After that, I will only be fixing rock bugs (some pretty messily) and writing a new compiler from scratch, hopefully learning from the problems rock has.
Of course, it will take long before it is production ready but it will hopefully be less of a mess.

Loading

@alexnask alexnask closed this Oct 2, 2014
@fasterthanlime fasterthanlime added this to the 0.9.10 milestone Jul 10, 2015
@fasterthanlime fasterthanlime added this to the 0.9.10 milestone Jul 10, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants