New J2K: Split old j2k and new j2k tests

This commit is contained in:
Ilya Kirillov
2019-03-28 14:20:17 +03:00
committed by Ilya Kirillov
parent 02a206bf7c
commit b411e8e18e
1631 changed files with 14067 additions and 1513 deletions
+32
View File
@@ -0,0 +1,32 @@
public class Passenger {
public static class PassParent {
}
public static class PassChild extends PassParent {
}
public PassParent provideNullable(int p) {
return p > 0 ? new PassChild() : null;
}
public void test1() {
PassParent pass = provideNullable(1);
assert pass != null;
accept1((PassChild) pass);
}
public void test2() {
PassParent pass = provideNullable(1);
if (1 == 2) {
assert pass != null;
accept2((PassChild) pass);
}
accept2((PassChild) pass);
}
public void accept1(PassChild p) {
}
public void accept2(PassChild p) {
}
}