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:
+1
-1
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user