Do not report diagnostic "ctr in trait" in delegation specifier

Constructor declaration in interfaces is prohibited anyway
This commit is contained in:
Denis Zharkov
2015-05-29 16:00:10 +03:00
parent 19e4127f4f
commit 3f7ca5a586
@@ -339,9 +339,6 @@ public class BodyResolver {
recordSupertype(typeReference, supertype);
ClassDescriptor classDescriptor = TypeUtils.getClassDescriptor(supertype);
if (classDescriptor != null) {
if (classDescriptor.getKind() == ClassKind.INTERFACE) {
trace.report(CONSTRUCTOR_IN_TRAIT.on(elementToMark));
}
// allow only one delegating constructor
if (primaryConstructorDelegationCall[0] == null) {
primaryConstructorDelegationCall[0] = results.getResultingCall();