Closed
Description
Currently, it is not possible to create a typedef
not as a top-level entity. However, they could be useful as a class member (static or not), or in a function body.
It is open to discussing how they should behave in classes, but it looks like it should be entirely possible to do the following:
void foo<T extends Object?>() {
typedef Double = T Function(T value);
...
}