gracelang / minigrace

Self-hosting compiler for the Grace programming language
39 stars 22 forks source link

Operator expression in inherit statement breaks compiler #239

Open apblack opened 7 years ago

apblack commented 7 years ago

Trying to inherit from n..m should probably fail because the range object won't be recognized as being fresh. But instead we get

Internal compiler error at line 1552 of genjs. NoSuchMethod: no method generics on opNode.new(_,_,_) op ..(1).  Did you mean line?
NoSuchMethod on line 1552 of genjs: no method generics on opNode.new(_,_,_) op ..(1).  Did you mean line?
    in "genjs" (line 1552, column 0)