Closed
Description
Describe the bug
cppfront errors when attempting to do this.
To Reproduce
f: (a: *() -> int) = {}
callback.cpp2(3,9): error: '*'/'const' type qualifiers must be followed by a type name or '_' wildcard (at '(')
Using a type alias also fails:
F: type == () -> int;
f: (a: *F) = {}
callback.cpp2(1,13): error: a 'type ==' alias declaration must be followed by a type name