testdata for IDEA-137795

This commit is contained in:
Anna Kozlova
2015-03-18 12:37:12 +01:00
parent eb5c717348
commit 4ba0890182
2 changed files with 14 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
import java.util.function.Function;
class Example {
void test() {
Function<? super Integer, Float> firstFunction = null;
Function<Float, String> secondFunction = null;
Function<? super Integer, String> function = firstFunction.andThen(secondFunction);
}
}

View File

@@ -55,6 +55,10 @@ public class Java8RegressionTest extends LightDaemonAnalyzerTestCase {
doTest();
}
public void testIDEA137795() throws Exception {
doTest();
}
private void doTest() {
doTest(false);
}