blob: d0da1f425c2b24690bab662880c8201cd201f1de [file] [log] [blame]
// @dart = 2.9
library test;
int getInt() => 0;
num getNum() => 0;
double getDouble() => 0.0;
abstract class Test<T, U> {
T operator [](String s);
void operator []=(String s, U v);
}
void test1(Test<int, int> t) {}
void test2(Test<int, num> t) {}
void test3(Test<int, double> t) {}
void test4(Test<num, int> t) {}
void test5(Test<num, num> t) {}
void test6(Test<num, double> t) {}
void test7(Test<double, int> t) {}
void test8(Test<double, num> t) {}
void test9(Test<double, double> t) {}
main() {}