diamonds: should check raw types when error occurs before inference is even started (IDEA-74053)

This commit is contained in:
anna
2011-09-08 19:27:51 +02:00
parent 2b83ce0999
commit b294192ac2
3 changed files with 19 additions and 6 deletions
@@ -313,6 +313,10 @@ public class PsiDiamondType extends PsiType {
public String getErrorMessage() {
return myErrorMessage;
}
public boolean failedToInfer() {
return myErrorMessage != null;
}
public void addInferredType(PsiType psiType) {
if (myErrorMessage != null) return;