mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
type inference for 'null' literal
This commit is contained in:
+1
@@ -60,6 +60,7 @@ public class GrLiteralImpl extends GrExpressionImpl implements GrLiteral, PsiLan
|
||||
}
|
||||
|
||||
public PsiType getType() {
|
||||
if (getFirstChild().getNode().getElementType() == kNULL) return PsiType.NULL;
|
||||
return GroovyPsiManager.getInstance(getProject()).getType(this, TYPE_CALCULATOR);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user