gracelang / minigrace

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

Type arguments to binary operator request are ignored #326

Closed IsaacOscar closed 3 years ago

IsaacOscar commented 4 years ago

Consider the following:

method +[[T]](x) { print(T) }
self +[[String]] self

It prints "type Unknown", whereas I would expect "type String".

apblack commented 3 years ago

This is not so much a bug as an unimplemented feature. Implementing required changes to the ast, parser, and code generator.

As of 11f1708 (minigrace version 5063), type arguments in binary operators now work as expected. The above example prints "type String"