mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
testdata
This commit is contained in:
+14
@@ -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);
|
||||
}
|
||||
}
|
||||
+13
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user