mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-04 08:51:02 +07:00
bad return type in lambda expression: requited type added; range corrected (IDEA-134942)
This commit is contained in:
@@ -32,6 +32,6 @@ class ReturnTypeCompatibility {
|
||||
call((String i)->{ return i;});
|
||||
call(i->{ return i;});
|
||||
call(i->"");
|
||||
call(<error descr="Incompatible return type int in lambda expression">(int i)->{ return i;}</error>);
|
||||
call((int i)->{ return <error descr="Bad return type in lambda expression: int cannot be converted to P">i</error>;});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user