Write KotlinInterfaceDefaultImpls annotation to DefaultImpls classes

Instead of KotlinSyntheticClass with kind = TRAIT_IMPL
This commit is contained in:
Alexander Udalov
2015-10-01 15:25:41 +03:00
parent e4090d3f30
commit 5bb47c8365
7 changed files with 54 additions and 17 deletions
@@ -187,7 +187,7 @@ public object InlineTestUtil {
private fun isClassOrPackagePartKind(header: KotlinClassHeader): Boolean {
return header.classKind == JvmAnnotationNames.KotlinClass.Kind.CLASS
|| header.syntheticClassKind == JvmAnnotationNames.KotlinSyntheticClass.Kind.PACKAGE_PART
|| header.syntheticClassKind == JvmAnnotationNames.KotlinSyntheticClass.Kind.TRAIT_IMPL
|| header.isInterfaceDefaultImpls
}
private fun getClassHeader(file: OutputFile): KotlinClassHeader {