mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
another fix for too eager casting in completion
This commit is contained in:
+18
@@ -0,0 +1,18 @@
|
||||
public class Util2 {
|
||||
void foo(XmlAttribute o ) {
|
||||
if (o instanceof XmlAttributeImpl) {
|
||||
o.getpar<caret>
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
interface PsiElement {
|
||||
PsiElement getParent();
|
||||
}
|
||||
interface XmlAttribute extends PsiElement {}
|
||||
class XmlAttributeImpl implements XmlAttribute {
|
||||
@Override
|
||||
public PsiElement getParent() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
public class Util2 {
|
||||
void foo(XmlAttribute o ) {
|
||||
if (o instanceof XmlAttributeImpl) {
|
||||
o.getParent()<caret>
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
interface PsiElement {
|
||||
PsiElement getParent();
|
||||
}
|
||||
interface XmlAttribute extends PsiElement {}
|
||||
class XmlAttributeImpl implements XmlAttribute {
|
||||
@Override
|
||||
public PsiElement getParent() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user