Minor add message for class cast

EA-59672
This commit is contained in:
Natalia Ukhorskaya
2014-10-09 16:37:49 +04:00
parent da96385f00
commit 1ce3ddaa82
@@ -747,7 +747,7 @@ private fun JetNamedDeclaration.getGeneratedBlockBody() =
when (this) {
is JetNamedFunction -> getBodyExpression()
else -> (this as JetProperty).getGetter()!!.getBodyExpression()
} as JetBlockExpression
} as? JetBlockExpression ?: throw AssertionError("Couldn't get block body for this declaration: ${JetPsiUtil.getElementTextWithContext(this)}")
fun ExtractableCodeDescriptor.validate(): ExtractableCodeDescriptorWithConflicts {
val conflicts = MultiMap<PsiElement, String>()