Generic function causes compiler crash #833

Closed
zhaihj opened this Issue Oct 2, 2014 · 2 comments

Projects

None yet

4 participants

@zhaihj
Contributor
zhaihj 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
Contributor

Related to #811, maybe?

@shamanas
Collaborator
shamanas 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.

@shamanas shamanas closed this Oct 2, 2014
@fasterthanlime fasterthanlime modified the milestone: 0.9.10 Jul 10, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment