I would like to define a function through a typedef and then passing the right Type when calling it. Something like this:
typedef testFn<T>();
main() {
testFn tester;
tester = testerFn;
tester<int>(); // Error: The method '() → dynamic' is declared with 0 type parameters, but 1 type arguments were given.
}
testerFn<T>() {//Do something}
I don't know if this a bug or not, but, anyway, how I could I solve something like that?