mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-20 13:31:28 +07:00
testdata for IDEA-139318
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
|
||||
class Test {
|
||||
{
|
||||
assertEquals(100, (int)get());
|
||||
}
|
||||
|
||||
private <T> T get() {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
public static void assertEquals(long expected, long actual) {}
|
||||
public static void assertEquals(double expected, double actual) {}
|
||||
public static void assertEquals(Object expected, Object actual) {}
|
||||
|
||||
}
|
||||
@@ -40,6 +40,9 @@ public class LambdaRedundantCastTest extends LightDaemonAnalyzerTestCase {
|
||||
public void testLambdaReturnExpressions1() { doTest(); }
|
||||
public void testPreventBadReturnTypeInReturnExpression() { doTest(); }
|
||||
public void testExpectedTypeByNestedArrayInitializer() { doTest(); }
|
||||
public void testCastToPrimitive() throws Exception {
|
||||
doTest();
|
||||
}
|
||||
|
||||
private void doTest() {
|
||||
doTest(BASE_PATH + "/" + getTestName(false) + ".java", true, false);
|
||||
|
||||
Reference in New Issue
Block a user