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 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

Related to #811, maybe?

@alexnask
Copy link
Collaborator

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.

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

4 participants