mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-06 01:06:54 +07:00
16 lines
352 B
Java
16 lines
352 B
Java
import org.jetbrains.annotations.*;
|
|
|
|
public class InferenceNullityMismatch {
|
|
static String getData(Super obj) {
|
|
if (!(obj instanceof Sub)) {
|
|
throw new IllegalArgumentException();
|
|
}
|
|
return obj.calculate();
|
|
}
|
|
}
|
|
class Super {
|
|
native @NotNull String calculate();
|
|
}
|
|
class Sub extends Super {
|
|
native @Nullable String calculate();
|
|
} |