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
@@ -17,7 +17,7 @@ header enum class En { ENTRY }
impl interface Interface
impl annotation class Anno(val prop: String)
impl annotation class Anno impl constructor(impl val prop: String)
impl object Object