blob: 3217b8445051eeefc92c77c01ce85b4119849704 [file] [log] [blame]
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() {}