type inference for 'null' literal

This commit is contained in:
Maxim.Medvedev
2011-10-19 11:32:09 +04:00
parent 993e196f4e
commit 05008aa412
@@ -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);
}