This commit is contained in:
Anna Kozlova
2014-04-22 20:02:34 +02:00
parent 17b020f7c2
commit 76a9293609
2 changed files with 9 additions and 0 deletions
@@ -0,0 +1,8 @@
class LambdaConv10 {
interface I<T, R> { public R call( T t); }
{
I<Integer,Integer> in = (<error descr="Incompatible parameter types in lambda expression">int i</error>) -> 2 * i;
}
}
@@ -102,6 +102,7 @@ public class LambdaHighlightingTest extends LightDaemonAnalyzerTestCase {
public void testSameLambdaParamNames() {doTest();}
public void testIDEA123308() {doTest();}
public void testIntersection() {doTest();}
public void testNoBoxingInLambdaFormalParams() {doTest();}
private void doTest() {
doTest(false);