kiselgra / c-mera

Next-level syntax for C-like languages :)
Other
405 stars 17 forks source link

Multi Word Return Types for Functions #106

Closed leigenstetter closed 10 months ago

leigenstetter commented 10 months ago

Multi word return types do not work:

(function f() -> unsigned int (return 42))

generates

unsigned f() { return 42; }

The correct result is: unsigned int f() { return 42; }

It seems like only the car of the return type is considered.

leigenstetter commented 10 months ago

Correct syntax is to use a list (function f() -> (unsigned int) (return 42))