mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-07 13:39:36 +07:00
new inference: provide diagnostics on failed inference (checked exceptions)
This commit is contained in:
@@ -20,7 +20,7 @@ class Test5 {
|
||||
static <T> void bar(I<T> i){}
|
||||
|
||||
{
|
||||
bar(() -> <error descr="Bad return type in lambda expression: <null> cannot be converted to void">null</error>);
|
||||
bar(<error descr="Incompatible parameter types in lambda expression">() -> null</error>);
|
||||
}
|
||||
}
|
||||
class Test6 {
|
||||
@@ -31,7 +31,7 @@ class Test6 {
|
||||
static <T> void bar(I<T> i){}
|
||||
|
||||
{
|
||||
bar(() -> <error descr="Bad return type in lambda expression: <null> cannot be converted to void">null</error>);
|
||||
bar(<error descr="Incompatible types: expected void but the lambda body is neither a statement expression nor a void-compatible block">() -> null</error>);
|
||||
bar(() -> {});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user