bad return type in lambda expression: requited type added; range corrected (IDEA-134942)

This commit is contained in:
Anna Kozlova
2015-01-07 16:07:27 +01:00
parent c11d64ac60
commit 8ce9831489
12 changed files with 33 additions and 30 deletions

View File

@@ -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>;});
}
}