blob: 91e0cd2c3198135e219eafeca5f698a0d768256c [file] [log] [blame]
void gftTests() {
// GFT with no return type.
Function ((int, int) a, ({String foo}) b) x;
// GFT with simple return type.
int Function ((int, int) a) y1;
// GFT with nullable simple return type.
int? Function ((int, int) a) y2;
// GFT with record return type.
(int, int) Function ((int, int) a) z1;
// GFT with nullable record return type.
(int, int)? Function ((int, int) a) z2;
// GFT with return type that is (GFT with record return type).
(int, int) Function(bool) Function ((int, int) a) z3;
// GFT with return type that is (GFT with nullable record return type).
(int, int)? Function(bool) Function ((int, int) a) z4;
}