This commit is contained in:
Anna Kozlova
2014-04-22 20:02:40 +02:00
parent f1f6fcf53b
commit b49d8e753f
3 changed files with 29 additions and 0 deletions
@@ -0,0 +1,14 @@
class Test {
interface A {
int m();
}
interface B {
int m(int i);
}
public static void main(String[] args) {
A a = ()-> ((B)i -> i).m(3);
}
}
@@ -0,0 +1,13 @@
class Test {
Runnable r;
{ r = r::run; }
Runnable r1;
{ r1 = () -> r1.run(); }
{
Runnable r = () -> <error descr="Variable 'r' might not have been initialized">r</error>.run();
Runnable r1 = <error descr="Variable 'r1' might not have been initialized">r1</error>::run;
}
}