Support header annotation classes in common modules

Properties are only allowed to be declared in a header class' primary
constructor if that class is an annotation class. However, we did not correctly
determine that such properties are also "header". The test passed because the
diagnostic was lost
This commit is contained in:
Alexander Udalov
2016-12-21 12:03:12 +03:00
parent 7d3628b9be
commit e4d85ac527
2 changed files with 2 additions and 2 deletions
@@ -1140,7 +1140,7 @@ public class DescriptorResolver {
KotlinSourceElementKt.toSourceElement(parameter),
/* lateInit = */ false,
/* isConst = */ false,
/* isHeader = */ false,
/* isHeader = */ classDescriptor.isHeader(),
/* isImpl = */ modifierList != null && modifierList.hasModifier(KtTokens.IMPL_KEYWORD),
/* isExternal = */ false
);