mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-25 14:25:04 +07:00
class types are not provably distinct when they belong to one hierarchy
This commit is contained in:
+21
@@ -509,3 +509,24 @@ class Refx<T> {
|
||||
return (Class<Enum>)get() == Enum.class;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//hierarchy of type param bound
|
||||
abstract class DomInvocationHandler<T extends AbstractDomChildDescriptionImpl> {
|
||||
void f() {
|
||||
if (this instanceof IndexedElementInvocationHandler) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
interface AbstractDomChildrenDescription {
|
||||
}
|
||||
|
||||
class AbstractDomChildDescriptionImpl implements AbstractDomChildrenDescription {
|
||||
}
|
||||
|
||||
class IndexedElementInvocationHandler extends DomInvocationHandler<FixedChildDescriptionImpl> {
|
||||
}
|
||||
|
||||
class FixedChildDescriptionImpl extends AbstractDomChildDescriptionImpl {
|
||||
}
|
||||
Reference in New Issue
Block a user