PrimitiveNull test

This commit is contained in:
Tagir Valeev
2018-01-06 15:22:37 +07:00
parent 87ac6da610
commit 5e423625d0
2 changed files with 11 additions and 0 deletions
@@ -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(); }
}