method refs: testdata

This commit is contained in:
anna
2012-10-02 20:08:33 +02:00
parent ff500e1468
commit 55c8b4db6c
2 changed files with 46 additions and 1 deletions

View File

@@ -72,3 +72,20 @@ class MyTest {
}
}
class MyTest2 {
interface IBool { void m(boolean[] a); }
interface IInt { void m(int[] a); }
interface IDbl { void m(double[] a); }
interface IObj { void m(Object[] a); }
static void foo(Object... vi) {}
static {
IBool iBool = MyTest2::foo;
IInt iInt = MyTest2::foo;
IDbl iDbl = MyTest2::foo;
IObj iObj = MyTest2::foo;
}
}