bad code green: reject return type constraint if unchecked conversion was applied during applicability check and return type is type parameter

This commit is contained in:
Anna.Kozlova
2016-04-11 21:51:18 +02:00
parent da6de99b11
commit 1466b0155e
5 changed files with 24 additions and 2 deletions
@@ -429,6 +429,10 @@ public class GraphInferenceHighlightingTest extends LightDaemonAnalyzerTestCase
doTest();
}
public void testPrimitiveTypeInReturnConstraintWithUncheckedConversion() throws Exception {
doTest();
}
public void testVariableNamesOfNestedCalls() throws Exception {
IdeaTestUtil.setTestVersion(JavaSdkVersion.JDK_1_8, getModule(), getTestRootDisposable());
String filePath = BASE_PATH + "/" + getTestName(false) + ".java";