Dart SDK version: 2.13.0-114.0.dev (dev) (Sat Mar 6 18:27:50 2021 -0800) on "windows_x64"
The following code example declares generic function typedef TEST_TYPEDEF and then try to assign TEST_TYPEDEF variable and check its type:
typedef TEST_TYPEDEF<TT extends T Function<T>(T)> = void Function<TTT extends TT>();
void testme<TT extends T Function<T>(T)>() {}
main() {
print(testme is TEST_TYPEDEF);
TEST_TYPEDEF ttttt = testme;
print(ttttt is TEST_TYPEDEF);
}
It's expected that if I succssffully assign testme to the variable of the type TEST_TYPEDEF, ttttt is TEST_TYPEDEF should report true. However, this is not so here: there are no errors and the example above twice prints false unexpectidly.
Dart SDK version: 2.13.0-114.0.dev (dev) (Sat Mar 6 18:27:50 2021 -0800) on "windows_x64"
The following code example declares generic function typedef
TEST_TYPEDEFand then try to assignTEST_TYPEDEFvariable and check its type:It's expected that if I succssffully assign
testmeto the variable of the typeTEST_TYPEDEF,ttttt is TEST_TYPEDEFshould reporttrue. However, this is not so here: there are no errors and the example above twice printsfalseunexpectidly.