mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
type compatibility constrain: boxing is not completeness-preserving: move treatment to return constraint
This commit is contained in:
+7
@@ -0,0 +1,7 @@
|
||||
public class Sample {
|
||||
static <T> T foo(T t) { return null; }
|
||||
|
||||
static {
|
||||
long l11 = foo(1 );
|
||||
}
|
||||
}
|
||||
+4
@@ -30,6 +30,10 @@ public class ConstraintsInferenceMiscTest extends LightDaemonAnalyzerTestCase {
|
||||
doTest(false);
|
||||
}
|
||||
|
||||
public void testPrimitiveTypesCompatibility() throws Exception {
|
||||
doTest(false);
|
||||
}
|
||||
|
||||
private void doTest(final boolean checkWarnings) {
|
||||
doTestNewInference(BASE_PATH + "/" + getTestName(false) + ".java", checkWarnings, false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user