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

zhaihj opened this Issue Oct 2, 2014 · 2 comments


None yet
4 participants

zhaihj commented Oct 2, 2014

Rock crashes(segmentation fault) while compiling this:

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

but inferring from parameter works well:

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

This comment has been minimized.


davidhesselbom commented Oct 2, 2014

Related to #811, maybe?


This comment has been minimized.


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