34 int m(Integer i1, Integer i2); |
34 int m(Integer i1, Integer i2); |
35 } |
35 } |
36 |
36 |
37 |
37 |
38 static void test() { |
38 static void test() { |
39 IntSam s1 = MethodReference51::unknown; //method not found |
39 IntSam s1 = MethodReference51::unknown; //fail |
40 IntSam s2 = MethodReference51::f; //inapplicable method |
40 IntSam s2 = MethodReference51::f; //fail |
41 IntSam s3 = MethodReference51::g; //inapplicable methods |
41 IntSam s3 = MethodReference51::g; //fail |
42 IntegerIntegerSam s4 = MethodReference51::g; //ambiguous |
42 IntegerIntegerSam s4 = MethodReference51::g; //fail |
43 IntSam s5 = MethodReference51::h; //static error |
43 IntSam s5 = MethodReference51::h; //fail |
44 IntSam s6 = MethodReference51.foo::j; //inaccessible method |
44 IntSam s6 = MethodReference51.foo::j; //fail |
45 } |
45 } |
46 } |
46 } |