Do not report diagnostic "ctr in trait" in delegation specifier
Constructor declaration in interfaces is prohibited anyway
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user