Add information about unsupported class for label descriptor

This commit is contained in:
Nikolay Krasko
2012-12-28 19:42:38 +04:00
parent 6f2625c7eb
commit 6ce830e999
@@ -85,7 +85,7 @@ public class LabelResolver {
element = (JetElement) BindingContextUtils.descriptorToDeclaration(context.trace.getBindingContext(), declarationDescriptor);
}
else {
throw new UnsupportedOperationException(); // TODO
throw new UnsupportedOperationException(declarationDescriptor.getClass().toString()); // TODO
}
context.trace.record(LABEL_TARGET, labelExpression, element);
return element;