mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
PrimitiveNull test
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
class A {
|
||||
static final <error descr="Incompatible types. Found: 'null', required: 'int'">int x = null;</error>
|
||||
|
||||
void test() {
|
||||
long y = x;
|
||||
}
|
||||
}
|
||||
@@ -579,4 +579,5 @@ public class DataFlowInspectionTest extends DataFlowInspectionTestCase {
|
||||
public void testPureNoArgMethodAsVariable() { doTest(); }
|
||||
public void testRedundantAssignment() { doTest(); }
|
||||
public void testXorNullity() { doTest(); }
|
||||
public void testPrimitiveNull() { doTest(); }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user