Skip annotation classes in $DefaultImpls method delegation logic

Annotation could be safely skipped (as already interfaces) cause
  compiler generates delegation to DefaultImpls only for classes
This commit is contained in:
Mikhael Bogdanov
2018-05-23 16:30:44 +02:00
parent 065780de4c
commit 4421b41790
@@ -1426,7 +1426,7 @@ public class ImplementationBodyCodegen extends ClassBodyCodegen {
}
private void generateTraitMethods() {
if (isInterface(descriptor)) return;
if (isJvmInterface(descriptor)) return;
for (Map.Entry<FunctionDescriptor, FunctionDescriptor> entry : CodegenUtil.getNonPrivateTraitMethods(descriptor).entrySet()) {
FunctionDescriptor interfaceFun = entry.getKey();