mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-01 18:58:31 +07:00
fix expected thrown types for lambda expressions
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
// "Create Local Variable 'v'" "true"
|
||||
public class A {
|
||||
void foo() {
|
||||
L l = () -> {
|
||||
MyException v;
|
||||
throw v
|
||||
}
|
||||
}
|
||||
|
||||
interface L {
|
||||
void g() throws MyException;
|
||||
}
|
||||
class MyException extends Exception {}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
// "Create Local Variable 'v'" "true"
|
||||
public class A {
|
||||
void foo() {
|
||||
L l = () -> {
|
||||
throw v<caret>
|
||||
}
|
||||
}
|
||||
|
||||
interface L {
|
||||
void g() throws MyException;
|
||||
}
|
||||
class MyException extends Exception {}
|
||||
}
|
||||
Reference in New Issue
Block a user