提交 c38f19db 编写于 作者: S Stepan Koltsov

unconditional assertion, helpful message

上级 2bb647bd
......@@ -368,7 +368,11 @@ public class OverrideResolver {
@NotNull Multimap<CallableDescriptor, CallableDescriptor> invisibleOverriddenDescriptors) {
JetNamedDeclaration member = (JetNamedDeclaration) BindingContextUtils.descriptorToDeclaration(trace.getBindingContext(), declared);
if (member == null) {
assert trace.get(DELEGATED, declared);
Boolean delegated = trace.get(DELEGATED, declared);
if (delegated == null || !delegated)
throw new IllegalStateException(
"decriptor is not resolved to declaration" +
" and it is not delegate: " + declared + ", DELEGATED: " + delegated);
return;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册