Clarified assert for EA-45243.
This commit is contained in:
@@ -155,7 +155,8 @@ public class SpecifyTypeExplicitlyAction extends PsiElementBaseIntentionAction {
|
|||||||
@NotNull final JetCallableDeclaration declaration,
|
@NotNull final JetCallableDeclaration declaration,
|
||||||
@NotNull JetType exprType
|
@NotNull JetType exprType
|
||||||
) {
|
) {
|
||||||
assert !exprType.isError() : "Unexpected error type: " + declaration.getText();
|
assert !exprType.isError() : "Unexpected error type, should have been checked before: "
|
||||||
|
+ JetPsiUtil.getElementTextWithContext(declaration) + ", type = " + exprType;
|
||||||
|
|
||||||
ClassifierDescriptor descriptor = exprType.getConstructor().getDeclarationDescriptor();
|
ClassifierDescriptor descriptor = exprType.getConstructor().getDeclarationDescriptor();
|
||||||
boolean isAnonymous = descriptor != null && DescriptorUtils.isAnonymousObject(descriptor);
|
boolean isAnonymous = descriptor != null && DescriptorUtils.isAnonymousObject(descriptor);
|
||||||
|
|||||||
Reference in New Issue
Block a user