mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-86929 Smart completion in "new " statement
This commit is contained in:
+2
-4
@@ -151,10 +151,8 @@ public class GroovyExpectedTypesProvider {
|
||||
|
||||
public void visitVariable(GrVariable variable) {
|
||||
if (myExpression.equals(variable.getInitializerGroovy())) {
|
||||
PsiType type = variable.getDeclaredType();
|
||||
if (type != null) {
|
||||
myResult = new TypeConstraint[]{new SubtypeConstraint(type, type)};
|
||||
}
|
||||
PsiType type = variable.getType();
|
||||
myResult = new TypeConstraint[]{new SubtypeConstraint(type, type)};
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user